Summary| Tags| Feature: src/test/java/InspireTest/ngr/T02_Services.feature| get details
Scenario: [1.1:82] ff8f6da2-949e-4838-90f6-fd895a4a240f
ms: 760
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:08.864 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
7
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ff8f6da2-949e-4838-90f6-fd895a4a240f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
713
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ff8f6da2-949e-4838-90f6-fd895a4a240f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
7
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
9
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
2
45
* print connectUrl
2
05:04:09.614 [print] https://inspire.rivm.nl/geoserver/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:09.615 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:09.616 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:09.617 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:04:09.619 [print] RIVM
57
* print operateson
0
05:04:09.619 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d24ccb35-e9d2-41bf-b231-43083fc0c76d
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:09.621 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:09.622 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:09.623 [print] "true";"true";"true"
76
* eval db.writeln('"ff8f6da2-949e-4838-90f6-fd895a4a240f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ff8f6da2-949e-4838-90f6-fd895a4a240f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ff8f6da2-949e-4838-90f6-fd895a4a240f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.2:82] d0b1a576-d1c5-47b4-972f-353f37eb1f8d
ms: 735
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:08.868 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
8
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd0b1a576-d1c5-47b4-972f-353f37eb1f8d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
686
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd0b1a576-d1c5-47b4-972f-353f37eb1f8d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
6
45
* print connectUrl
3
05:04:09.582 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.c9827525-5ea6-47bc-aa4a-3fa9665f0327?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:09.584 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:04:09.585 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
6
05:04:09.591 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:09.592 [print] KNMI
57
* print operateson
0
05:04:09.593 [print] https://haleconnect.com/services/bsp/org.874.c9827525-5ea6-47bc-aa4a-3fa9665f0327/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:09.595 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:09.596 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
7
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:09.603 [print] true
76
* eval db.writeln('"d0b1a576-d1c5-47b4-972f-353f37eb1f8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d0b1a576-d1c5-47b4-972f-353f37eb1f8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"d0b1a576-d1c5-47b4-972f-353f37eb1f8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.3:82] 57844c27-ff48-4e0b-9321-174d83829a19
ms: 682
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:08.876 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
4
13
* eval db.ensureDirectory(outputpath)
4
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '57844c27-ff48-4e0b-9321-174d83829a19'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
631
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '57844c27-ff48-4e0b-9321-174d83829a19'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:09.531 [print] https://service.pdok.nl/provincies/wet-ammoniak-veehouderij-gebieden/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:09.533 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:09.534 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:09.534 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:09.535 [print] Beheer PDOK
57
* print operateson
0
05:04:09.535 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:09.538 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:09.539 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:09.540 [print] "true";"true"
76
* eval db.writeln('"57844c27-ff48-4e0b-9321-174d83829a19","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
9
77
* eval db.writeln('"57844c27-ff48-4e0b-9321-174d83829a19","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
9
78
* eval db.writeln('"57844c27-ff48-4e0b-9321-174d83829a19","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.4:82] 22bedc12-e9cb-4419-8e51-dfb375d46d01
ms: 719
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:08.879 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
6
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '22bedc12-e9cb-4419-8e51-dfb375d46d01'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
653
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '22bedc12-e9cb-4419-8e51-dfb375d46d01'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
5
45
* print connectUrl
0
05:04:09.554 [print] http://services.inspire-provincies.nl/NaturalRiskZones/services/view_NZ?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
7
05:04:09.562 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:09.563 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:09.563 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
8
56
* print organisationpath
3
05:04:09.574 [print] Interprovinciaal Overleg
57
* print operateson
0
05:04:09.575 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=88f76a94-ee4d-4e0c-9fde-91b692403e39&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=08af1182-91fe-4d21-aa21-ee002953c3cc&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=d91126e0-e37b-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=667ebfb0-e37c-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:09.577 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:09.578 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services 3.1";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
6
05:04:09.585 [print] "false";"true";"true"
76
* eval db.writeln('"22bedc12-e9cb-4419-8e51-dfb375d46d01","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
12
77
* eval db.writeln('"22bedc12-e9cb-4419-8e51-dfb375d46d01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"22bedc12-e9cb-4419-8e51-dfb375d46d01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.5:82] cf89409f-e268-4adb-9f34-a63b84ecfc12
ms: 589
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:09.580 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cf89409f-e268-4adb-9f34-a63b84ecfc12'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
571
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cf89409f-e268-4adb-9f34-a63b84ecfc12'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:10.161 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.f8e8e27f-9a8a-4704-b3d6-f42dc97157d2?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:10.162 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:10.163 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:10.163 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:10.164 [print] KNMI
57
* print operateson
0
05:04:10.164 [print] https://haleconnect.com/services/bsp/org.874.f8e8e27f-9a8a-4704-b3d6-f42dc97157d2/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:10.166 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:10.167 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:10.168 [print] true
76
* eval db.writeln('"cf89409f-e268-4adb-9f34-a63b84ecfc12","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"cf89409f-e268-4adb-9f34-a63b84ecfc12","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"cf89409f-e268-4adb-9f34-a63b84ecfc12","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.6:82] 7d33772b-8bb4-4c9a-b5b4-07ada37694cd
ms: 586
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:09.602 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
8
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7d33772b-8bb4-4c9a-b5b4-07ada37694cd'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7d33772b-8bb4-4c9a-b5b4-07ada37694cd'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:10.180 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.1fe64439-81bd-4adb-8a64-957200a4a48a?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:10.181 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:10.182 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:10.182 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:10.183 [print] KNMI
57
* print operateson
0
05:04:10.183 [print] https://haleconnect.com/services/bsp/org.874.1fe64439-81bd-4adb-8a64-957200a4a48a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:10.185 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:10.186 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:10.187 [print] true
76
* eval db.writeln('"7d33772b-8bb4-4c9a-b5b4-07ada37694cd","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7d33772b-8bb4-4c9a-b5b4-07ada37694cd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7d33772b-8bb4-4c9a-b5b4-07ada37694cd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.7:82] 745968a3-37af-4406-988e-ec595f58c7fe
ms: 668
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:09.612 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
4
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '745968a3-37af-4406-988e-ec595f58c7fe'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
643
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '745968a3-37af-4406-988e-ec595f58c7fe'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
4
45
* print connectUrl
0
05:04:10.271 [print] https://inspire.rivm.nl/geoserver/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
2
05:04:10.274 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:10.275 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:10.275 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:10.277 [print] RIVM
57
* print operateson
0
05:04:10.278 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d24ccb35-e9d2-41bf-b231-43083fc0c76d
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:10.279 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:10.280 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:10.281 [print] "true";"true";"true"
76
* eval db.writeln('"745968a3-37af-4406-988e-ec595f58c7fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"745968a3-37af-4406-988e-ec595f58c7fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"745968a3-37af-4406-988e-ec595f58c7fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.8:82] 33f3b24a-0b34-4153-9930-726d575a04d1
ms: 634
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:09.628 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '33f3b24a-0b34-4153-9930-726d575a04d1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
616
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '33f3b24a-0b34-4153-9930-726d575a04d1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:10.253 [print] https://service.pdok.nl/provincies/aardkundige-waarden/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:10.254 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:10.254 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:10.255 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:10.256 [print] Beheer PDOK
57
* print operateson
1
05:04:10.256 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f002bfc5-7d87-46b6-819e-8415422b65c9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:10.258 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:10.259 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:10.261 [print] "true";"true"
76
* eval db.writeln('"33f3b24a-0b34-4153-9930-726d575a04d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"33f3b24a-0b34-4153-9930-726d575a04d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"33f3b24a-0b34-4153-9930-726d575a04d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.9:82] 081bcfff-5f66-467c-95d0-d88dcf9aa4cf
ms: 565
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:10.173 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '081bcfff-5f66-467c-95d0-d88dcf9aa4cf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
547
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '081bcfff-5f66-467c-95d0-d88dcf9aa4cf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:10.730 [print] https://inspire.rivm.nl/geoserver/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:10.731 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:10.732 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:10.732 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:10.733 [print] RIVM
57
* print operateson
0
05:04:10.733 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b3f66964-a8c1-456f-9799-9cafca2cb7b1
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:10.735 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:10.736 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:10.737 [print] "true";"true";"true"
76
* eval db.writeln('"081bcfff-5f66-467c-95d0-d88dcf9aa4cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"081bcfff-5f66-467c-95d0-d88dcf9aa4cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"081bcfff-5f66-467c-95d0-d88dcf9aa4cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.10:82] 6d86c14f-cccf-41e9-a58e-ead9d52ae35d
ms: 598
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:10.193 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6d86c14f-cccf-41e9-a58e-ead9d52ae35d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6d86c14f-cccf-41e9-a58e-ead9d52ae35d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:10.765 [print] http://data.waterkwaliteitsportaal.nl/inspire/vs/AM
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:10.766 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:10.767 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:10.768 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:10.769 [print] Informatiehuis Water
57
* print operateson
0
05:04:10.769 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/nl/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=110f9ec6-4464-462e-9765-83d90cefbeab&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:10.771 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:10.773 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Zie de gerefereerde specificatie.";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
16
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:10.789 [print] "false";"true";"true"
76
* eval db.writeln('"6d86c14f-cccf-41e9-a58e-ead9d52ae35d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6d86c14f-cccf-41e9-a58e-ead9d52ae35d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"6d86c14f-cccf-41e9-a58e-ead9d52ae35d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.11:82] dda53ebc-bee7-4765-8f1f-6ac59b0aec39
ms: 578
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:10.270 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
2
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
2
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dda53ebc-bee7-4765-8f1f-6ac59b0aec39'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
551
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dda53ebc-bee7-4765-8f1f-6ac59b0aec39'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:10.837 [print] https://www.broinspireservices.nl/wms/ossobor-a-v1.0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:10.838 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:04:10.839 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:10.840 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:10.841 [print] TNO Geologische Dienst Nederland
57
* print operateson
1
05:04:10.841 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=9dd9bf30-36e6-45ae-b368-bdef2720bdde&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
1
64
* print corConformanceHref
0
05:04:10.844 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:10.845 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:10.847 [print] "true";"false"
76
* eval db.writeln('"dda53ebc-bee7-4765-8f1f-6ac59b0aec39","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"dda53ebc-bee7-4765-8f1f-6ac59b0aec39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"dda53ebc-bee7-4765-8f1f-6ac59b0aec39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.12:82] ac873153-d885-45e4-b2ab-ad0600d203d3
ms: 605
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:10.285 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ac873153-d885-45e4-b2ab-ad0600d203d3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
577
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ac873153-d885-45e4-b2ab-ad0600d203d3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
3
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:10.875 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.b005ca06-7d3d-4805-bcac-0fb65196db22?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:10.876 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:04:10.877 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:10.878 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:10.879 [print] KNMI
57
* print operateson
0
05:04:10.879 [print] https://haleconnect.com/services/bsp/org.874.b005ca06-7d3d-4805-bcac-0fb65196db22/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:10.881 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:10.883 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:10.884 [print] true
76
* eval db.writeln('"ac873153-d885-45e4-b2ab-ad0600d203d3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ac873153-d885-45e4-b2ab-ad0600d203d3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
6
78
* eval db.writeln('"ac873153-d885-45e4-b2ab-ad0600d203d3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.13:82] 0426f471-f325-42ed-a775-81c397592e86
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:10.741 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0426f471-f325-42ed-a775-81c397592e86'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
547
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0426f471-f325-42ed-a775-81c397592e86'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:11.301 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:11.303 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:11.304 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:11.305 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:04:11.306 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
1
05:04:11.307 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:04:11.309 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:11.311 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:11.312 [print] "false";"false"
76
* eval db.writeln('"0426f471-f325-42ed-a775-81c397592e86","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"0426f471-f325-42ed-a775-81c397592e86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"0426f471-f325-42ed-a775-81c397592e86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.14:82] a4c5aa6c-6c7f-45d7-9799-011edd83d9c2
ms: 588
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:10.796 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a4c5aa6c-6c7f-45d7-9799-011edd83d9c2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
567
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a4c5aa6c-6c7f-45d7-9799-011edd83d9c2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:11.375 [print] https://inspire.caris.nl/gs5/ProspectingAndMiningPermitArea/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:11.376 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:04:11.377 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:11.378 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:11.379 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:11.379 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c2225e5d-b46f-4e38-8445-ab10fd40c0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:11.380 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:11.382 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:11.383 [print] "true";"true"
76
* eval db.writeln('"a4c5aa6c-6c7f-45d7-9799-011edd83d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a4c5aa6c-6c7f-45d7-9799-011edd83d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a4c5aa6c-6c7f-45d7-9799-011edd83d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.15:82] b6d902f4-97e8-4bcc-ba87-e58134645ab7
ms: 609
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:10.856 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
2
12
* def outputpath = db.outputpath()
1
13
* eval db.ensureDirectory(outputpath)
9
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b6d902f4-97e8-4bcc-ba87-e58134645ab7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
581
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b6d902f4-97e8-4bcc-ba87-e58134645ab7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:11.460 [print] https:\/\/inspire.caris.nl\/gs4\/LAT2018OF\/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:11.461 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:11.462 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:11.462 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:11.463 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:11.463 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=be6551de-a709-4c6d-a5e2-f63f0cf038ba&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:11.465 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:11.466 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:11.467 [print] "true";"true"
76
* eval db.writeln('"b6d902f4-97e8-4bcc-ba87-e58134645ab7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"b6d902f4-97e8-4bcc-ba87-e58134645ab7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"b6d902f4-97e8-4bcc-ba87-e58134645ab7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.16:82] 2dd6c9df-bb47-40eb-af39-2d17f09b9bb9
ms: 614
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:10.895 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2dd6c9df-bb47-40eb-af39-2d17f09b9bb9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
1
29
When method get
597
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2dd6c9df-bb47-40eb-af39-2d17f09b9bb9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:11.502 [print] https://www.gdngeoservices.nl/inspire/wms/oppervlaktegeologie?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:11.503 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:11.504 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:11.504 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:11.505 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
05:04:11.505 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=80630ee7-3a15-4ea0-bdc0-a8aebfa2f204&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:11.507 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:11.508 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:11.508 [print] "true";"false"
76
* eval db.writeln('"2dd6c9df-bb47-40eb-af39-2d17f09b9bb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"2dd6c9df-bb47-40eb-af39-2d17f09b9bb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"2dd6c9df-bb47-40eb-af39-2d17f09b9bb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.17:82] d293204f-6581-4b0a-811b-1dcce97adedd
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:11.317 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
1
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd293204f-6581-4b0a-811b-1dcce97adedd'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd293204f-6581-4b0a-811b-1dcce97adedd'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
2
45
* print connectUrl
0
05:04:11.882 [print] https://geodata.nationaalgeoregister.nl/publiekrechtelijkebeperking/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:11.883 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:11.884 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:11.884 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:11.885 [print] Beheer PDOK
57
* print operateson
0
05:04:11.885 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e536d943-ecff-4d7a-9500-cc31a263a6af#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:11.887 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:11.888 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:11.889 [print] "true";"true"
76
* eval db.writeln('"d293204f-6581-4b0a-811b-1dcce97adedd","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"d293204f-6581-4b0a-811b-1dcce97adedd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"d293204f-6581-4b0a-811b-1dcce97adedd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.18:82] e29b19de-d191-47f2-b944-5056a7674cce
ms: 567
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:11.388 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
2
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e29b19de-d191-47f2-b944-5056a7674cce'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e29b19de-d191-47f2-b944-5056a7674cce'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:11.941 [print] https://inspire.caris.nl/gs5/am/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:11.942 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:11.943 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:11.944 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:11.945 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
1
05:04:11.946 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:11.948 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:11.949 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:11.950 [print] "true";"true"
76
* eval db.writeln('"e29b19de-d191-47f2-b944-5056a7674cce","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"e29b19de-d191-47f2-b944-5056a7674cce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
4
78
* eval db.writeln('"e29b19de-d191-47f2-b944-5056a7674cce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.19:82] 97b49056-8ace-426c-ae3e-bf7efe4c000f
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:11.471 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
2
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
1
26
And param id = '97b49056-8ace-426c-ae3e-bf7efe4c000f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '97b49056-8ace-426c-ae3e-bf7efe4c000f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:12.034 [print] https://inspire.caris.nl/geoserver/baselinews/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:12.035 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:12.036 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:12.036 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:12.037 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:12.038 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=1249746f-c2a6-4639-98f2-251676b3528e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:12.039 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:12.041 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:12.042 [print] "true";"true"
76
* eval db.writeln('"97b49056-8ace-426c-ae3e-bf7efe4c000f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"97b49056-8ace-426c-ae3e-bf7efe4c000f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"97b49056-8ace-426c-ae3e-bf7efe4c000f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.20:82] 7c664a91-1aa2-4923-9d17-6a43e4075f47
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:11.512 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7c664a91-1aa2-4923-9d17-6a43e4075f47'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7c664a91-1aa2-4923-9d17-6a43e4075f47'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:12.085 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-Territoriale-Zee-Noordzee-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:12.085 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:12.086 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:12.087 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:12.088 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:12.088 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=bb11be63-bd38-4632-bf54-df44c423a529#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:12.090 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:12.091 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
1
71
* print corConformancePass
0
05:04:12.093 [print] "true";"true"
76
* eval db.writeln('"7c664a91-1aa2-4923-9d17-6a43e4075f47","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"7c664a91-1aa2-4923-9d17-6a43e4075f47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7c664a91-1aa2-4923-9d17-6a43e4075f47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.21:82] f2d2cd9d-7410-485a-95e0-c1b885243eaf
ms: 567
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:11.893 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f2d2cd9d-7410-485a-95e0-c1b885243eaf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
547
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f2d2cd9d-7410-485a-95e0-c1b885243eaf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:12.450 [print] https://inspire.caris.nl/geoserver/eez/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:12.450 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
2
05:04:12.453 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:12.453 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:12.454 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:12.454 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e8b84fae-00b3-49c1-80c1-df8f69f64e8c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:12.455 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:12.456 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:12.457 [print] "true";"true"
76
* eval db.writeln('"f2d2cd9d-7410-485a-95e0-c1b885243eaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"f2d2cd9d-7410-485a-95e0-c1b885243eaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f2d2cd9d-7410-485a-95e0-c1b885243eaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.22:82] 364c5d7a-d6ec-11ea-87d0-0242ac130003
ms: 625
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:11.960 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '364c5d7a-d6ec-11ea-87d0-0242ac130003'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
604
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '364c5d7a-d6ec-11ea-87d0-0242ac130003'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:12.575 [print] #notpresent
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:12.575 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:12.577 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:12.577 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:12.578 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
05:04:12.578 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=2a379cc6-d16e-11ea-87d0-0242ac130003&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:12.579 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
3
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:12.582 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:12.583 [print] "true";"true"
76
* eval db.writeln('"364c5d7a-d6ec-11ea-87d0-0242ac130003","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"364c5d7a-d6ec-11ea-87d0-0242ac130003","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"364c5d7a-d6ec-11ea-87d0-0242ac130003","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.23:82] f61eec5c-cb91-40b6-ad35-9bca967006cc
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:12.052 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f61eec5c-cb91-40b6-ad35-9bca967006cc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f61eec5c-cb91-40b6-ad35-9bca967006cc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:12.619 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:12.620 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:12.620 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:12.621 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:12.621 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:04:12.621 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=588a4cb1-b442-4ac1-87e4-40401e353166#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:12.623 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:12.624 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:12.625 [print] "false";"false"
76
* eval db.writeln('"f61eec5c-cb91-40b6-ad35-9bca967006cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"f61eec5c-cb91-40b6-ad35-9bca967006cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f61eec5c-cb91-40b6-ad35-9bca967006cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.24:82] 1492fa63-96e2-406d-9a27-6affe281d848
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:12.099 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1492fa63-96e2-406d-9a27-6affe281d848'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1492fa63-96e2-406d-9a27-6affe281d848'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:12.665 [print] https://inspire.caris.nl/geoserver/tz/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:12.665 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:12.666 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:12.666 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:12.667 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:12.667 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=bb11be63-bd38-4632-bf54-df44c423a529#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:12.669 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:12.670 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:12.670 [print] "true";"true"
76
* eval db.writeln('"1492fa63-96e2-406d-9a27-6affe281d848","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1492fa63-96e2-406d-9a27-6affe281d848","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"1492fa63-96e2-406d-9a27-6affe281d848","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.25:82] 17ad94f6-4961-448b-a6f5-5368b7870409
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:12.463 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '17ad94f6-4961-448b-a6f5-5368b7870409'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
540
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '17ad94f6-4961-448b-a6f5-5368b7870409'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:13.012 [print] https://inspire.caris.nl/geoserver3/bathy_wcs/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:13.012 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:13.013 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:13.013 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:13.014 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:13.014 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/xml.metadata.get?uuid=a322184d-6285-4856-bb78-f450b30ffc0e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:13.016 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:13.016 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
2
71
* print corConformancePass
0
05:04:13.020 [print] "true";"true"
76
* eval db.writeln('"17ad94f6-4961-448b-a6f5-5368b7870409","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"17ad94f6-4961-448b-a6f5-5368b7870409","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"17ad94f6-4961-448b-a6f5-5368b7870409","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.26:82] 82a98057-861b-4c69-9b8e-fe1a7d7bdd29
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:12.593 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '82a98057-861b-4c69-9b8e-fe1a7d7bdd29'
2
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '82a98057-861b-4c69-9b8e-fe1a7d7bdd29'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:13.159 [print] https://service.pdok.nl/provincies/provinciaal-landschapsbeleid/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:13.160 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:13.161 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:13.161 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:13.162 [print] Beheer PDOK
57
* print operateson
0
05:04:13.162 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=60a2a7c2-d5b3-4ad5-b562-c448695357fb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:13.163 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:13.164 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:13.165 [print] "true";"true"
76
* eval db.writeln('"82a98057-861b-4c69-9b8e-fe1a7d7bdd29","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"82a98057-861b-4c69-9b8e-fe1a7d7bdd29","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
5
78
* eval db.writeln('"82a98057-861b-4c69-9b8e-fe1a7d7bdd29","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.27:82] 0d2ca03b-fb7b-466a-bb93-e2bfb596e394
ms: 594
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:12.633 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
3
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
1
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0d2ca03b-fb7b-466a-bb93-e2bfb596e394'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
575
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0d2ca03b-fb7b-466a-bb93-e2bfb596e394'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:13.221 [print] https://inspire.caris.nl/gs5/pssa_nl/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:13.221 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:13.222 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:13.222 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:13.223 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:13.223 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=f1d27179-36eb-4376-8048-f51d2eb23a09&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:13.225 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:13.226 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:13.226 [print] "true";"true"
76
* eval db.writeln('"0d2ca03b-fb7b-466a-bb93-e2bfb596e394","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"0d2ca03b-fb7b-466a-bb93-e2bfb596e394","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"0d2ca03b-fb7b-466a-bb93-e2bfb596e394","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.28:82] 5f0c583a-101e-45ea-b684-a056713cf811
ms: 605
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:12.674 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5f0c583a-101e-45ea-b684-a056713cf811'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5f0c583a-101e-45ea-b684-a056713cf811'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:13.240 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-baseline-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
3
50
* print protocol1
20
05:04:13.263 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:04:13.265 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:13.265 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:04:13.267 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
7
05:04:13.274 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=1249746f-c2a6-4639-98f2-251676b3528e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:13.276 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:13.277 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:13.278 [print] "true";"true"
76
* eval db.writeln('"5f0c583a-101e-45ea-b684-a056713cf811","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5f0c583a-101e-45ea-b684-a056713cf811","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"5f0c583a-101e-45ea-b684-a056713cf811","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.29:82] ebd029f5-6e8f-4d61-b89a-11427c96bf3a
ms: 586
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:13.024 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ebd029f5-6e8f-4d61-b89a-11427c96bf3a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ebd029f5-6e8f-4d61-b89a-11427c96bf3a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
3
05:04:13.594 [print] https:\/\/inspire.caris.nl\/gs4\/LAT2018OF\/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:13.595 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:13.596 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:13.596 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:13.597 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:13.597 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=be6551de-a709-4c6d-a5e2-f63f0cf038ba&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:13.599 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:13.600 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:13.601 [print] "true";"true"
76
* eval db.writeln('"ebd029f5-6e8f-4d61-b89a-11427c96bf3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ebd029f5-6e8f-4d61-b89a-11427c96bf3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
4
78
* eval db.writeln('"ebd029f5-6e8f-4d61-b89a-11427c96bf3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
4
Scenario: [1.30:82] b4485d59-a945-4940-a2f5-3ce7de6a947b
ms: 567
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:13.173 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b4485d59-a945-4940-a2f5-3ce7de6a947b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
546
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b4485d59-a945-4940-a2f5-3ce7de6a947b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:13.731 [print] https://inspire.rivm.nl/geoserver/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:13.732 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:13.733 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:13.734 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:13.735 [print] RIVM
57
* print operateson
0
05:04:13.735 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b3f66964-a8c1-456f-9799-9cafca2cb7b1
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:13.737 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:13.738 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:13.739 [print] "true";"true";"true"
76
* eval db.writeln('"b4485d59-a945-4940-a2f5-3ce7de6a947b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b4485d59-a945-4940-a2f5-3ce7de6a947b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"b4485d59-a945-4940-a2f5-3ce7de6a947b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.31:82] 914a6e0c-2aae-42f8-8425-2a047c245dab
ms: 599
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:13.232 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
6
9
* def separator = java.lang.System.getProperty("file.separator")
3
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '914a6e0c-2aae-42f8-8425-2a047c245dab'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
571
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '914a6e0c-2aae-42f8-8425-2a047c245dab'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:13.840 [print] https://haleconnect.com/ows/services/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:13.841 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:13.842 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:13.842 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:13.843 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
05:04:13.843 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:13.845 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:13.846 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:13.847 [print] true
76
* eval db.writeln('"914a6e0c-2aae-42f8-8425-2a047c245dab","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"914a6e0c-2aae-42f8-8425-2a047c245dab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"914a6e0c-2aae-42f8-8425-2a047c245dab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.32:82] d467c2cc-4026-b80a-d4e1a9d2bf79
ms: 591
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:13.283 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
2
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd467c2cc-4026-b80a-d4e1a9d2bf79'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
568
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd467c2cc-4026-b80a-d4e1a9d2bf79'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
4
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:13.866 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/hy-n\/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:13.867 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:13.868 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:13.868 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:13.869 [print] Beheer PDOK
57
* print operateson
0
05:04:13.869 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=eu-f297898-2640-44c2-bbe9-c0480da83794#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:13.871 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:13.872 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:13.873 [print] "true";"true"
76
* eval db.writeln('"d467c2cc-4026-b80a-d4e1a9d2bf79","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d467c2cc-4026-b80a-d4e1a9d2bf79","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"d467c2cc-4026-b80a-d4e1a9d2bf79","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.33:82] efb5222c-112a-4c57-9bbf-f2af918cb9b5
ms: 613
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:13.615 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'efb5222c-112a-4c57-9bbf-f2af918cb9b5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
596
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'efb5222c-112a-4c57-9bbf-f2af918cb9b5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:14.221 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-aansluitende-zone-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:14.221 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:14.222 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:14.222 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:14.223 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:14.223 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=060d1139-c371-4c1e-9890-55999adfa4f9&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:14.225 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:14.226 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:14.227 [print] "true";"true"
76
* eval db.writeln('"efb5222c-112a-4c57-9bbf-f2af918cb9b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"efb5222c-112a-4c57-9bbf-f2af918cb9b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"efb5222c-112a-4c57-9bbf-f2af918cb9b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.34:82] 4ce823b4-94b4-4d24-8512-519179315878
ms: 565
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:13.752 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4ce823b4-94b4-4d24-8512-519179315878'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4ce823b4-94b4-4d24-8512-519179315878'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:14.311 [print] https://service.pdok.nl/provincies/provinciale-monumenten/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:14.312 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:14.313 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:14.313 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:14.313 [print] Beheer PDOK
57
* print operateson
0
05:04:14.313 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ca94a0cb-7561-4a10-a7d6-b840e56c33ff#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:14.315 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:14.316 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:14.317 [print] "true";"true"
76
* eval db.writeln('"4ce823b4-94b4-4d24-8512-519179315878","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"4ce823b4-94b4-4d24-8512-519179315878","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"4ce823b4-94b4-4d24-8512-519179315878","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.35:82] dd414384-0bcb-4188-86e2-2843e12a579e
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:13.853 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
10
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dd414384-0bcb-4188-86e2-2843e12a579e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
533
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dd414384-0bcb-4188-86e2-2843e12a579e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:14.407 [print] https://www.broinspireservices.nl/wfs/ossosgm-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:14.408 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:14.409 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:14.409 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:14.410 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
05:04:14.411 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=a7fb2234-f7b4-4a03-b282-f10947f42fb1&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:14.413 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:14.414 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:14.416 [print] "true";"true"
76
* eval db.writeln('"dd414384-0bcb-4188-86e2-2843e12a579e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"dd414384-0bcb-4188-86e2-2843e12a579e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"dd414384-0bcb-4188-86e2-2843e12a579e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.36:82] a6341e75-0dff-4948-9317-433324ab483b
ms: 610
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:13.884 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a6341e75-0dff-4948-9317-433324ab483b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
595
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a6341e75-0dff-4948-9317-433324ab483b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:14.488 [print] https://service.pdok.nl/provincies/natuurnetwerk-nederland/wms/v1_0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:14.489 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:14.489 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:14.490 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:14.490 [print] Beheer PDOK
57
* print operateson
0
05:04:14.490 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c7d8d77b-8c47-4309-8c58-9b12b086407f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:14.492 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:14.493 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:14.493 [print] "true";"true"
76
* eval db.writeln('"a6341e75-0dff-4948-9317-433324ab483b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"a6341e75-0dff-4948-9317-433324ab483b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a6341e75-0dff-4948-9317-433324ab483b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.37:82] ca71572f-a498-4ca6-aa60-d4c4c4d59e2e
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:14.231 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ca71572f-a498-4ca6-aa60-d4c4c4d59e2e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ca71572f-a498-4ca6-aa60-d4c4c4d59e2e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:14.792 [print] https://inspire.caris.nl/geoserver/gnwms/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:14.793 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:14.794 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:14.794 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:14.795 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:14.795 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=34e95842-4e4e-46de-9198-79e8cd4d30dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:14.796 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:14.797 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:14.798 [print] "true";"true"
76
* eval db.writeln('"ca71572f-a498-4ca6-aa60-d4c4c4d59e2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ca71572f-a498-4ca6-aa60-d4c4c4d59e2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ca71572f-a498-4ca6-aa60-d4c4c4d59e2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.38:82] 55cf16e8-1c04-462c-b78a-e0d28823dd2e
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:14.321 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '55cf16e8-1c04-462c-b78a-e0d28823dd2e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
543
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '55cf16e8-1c04-462c-b78a-e0d28823dd2e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:14.875 [print] https://haleconnect.com/ows/services/org.874.c4108a11-bdbb-4461-8902-423531561a7e_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
6
05:04:14.882 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:04:14.883 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:14.884 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:14.885 [print] KNMI
57
* print operateson
1
05:04:14.885 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:04:14.888 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:14.889 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:14.890 [print] true
76
* eval db.writeln('"55cf16e8-1c04-462c-b78a-e0d28823dd2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"55cf16e8-1c04-462c-b78a-e0d28823dd2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"55cf16e8-1c04-462c-b78a-e0d28823dd2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.39:82] ef2a7962-8bb4-483f-ca52-85123f579
ms: 549
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:14.423 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ef2a7962-8bb4-483f-ca52-85123f579'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
533
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ef2a7962-8bb4-483f-ca52-85123f579'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:14.966 [print] http://data.waterkwaliteitsportaal.nl/inspire/ds/nl.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:14.966 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:14.967 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:14.967 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:14.968 [print] Informatiehuis Water
57
* print operateson
0
05:04:14.968 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=110f9ec6-4464-462e-9765-83d90cefbeab&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=891ddc2d-8949-4a45-be96-c65b87c41f13&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:14.969 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:14.970 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"notEvaluated";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:14.971 [print] "false";"true";"true"
76
* eval db.writeln('"ef2a7962-8bb4-483f-ca52-85123f579","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"ef2a7962-8bb4-483f-ca52-85123f579","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ef2a7962-8bb4-483f-ca52-85123f579","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.40:82] f39d198a-1e69-43cc-b359-cc60a8c22d28
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:14.498 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f39d198a-1e69-43cc-b359-cc60a8c22d28'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f39d198a-1e69-43cc-b359-cc60a8c22d28'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:15.058 [print] https://inspire.rivm.nl/sos/eaq/service?service=AQD&version=1.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:15.059 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:15.060 [print] OGC:SOS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:15.060 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:15.061 [print] RIVM
57
* print operateson
0
05:04:15.062 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=733559a5-201d-40e5-ad43-d1c7bae84d9f","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d3c9efd6-fca7-49d6-92bb-5f507abece90","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=af135cd8-d429-4fc7-b9e3-09e15217520d","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=b3ec8793-7747-4da0-b6c3-aa384446a586","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5800f3b0-2ea2-4231-8165-216a7b26867f","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d8f370e8-123c-4ab3-9410-04f728327ac6","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=500d396f-5ec6-4e4b-a151-5fb3cddd8082"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:15.065 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:15.066 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Voldoet aan de SDS interoperabilities specificaties.";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Voldoet aan de download specificaties";"OGC Sensor Observation Service Interface Standard";"Conform OGC SOS specificaties"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:15.067 [print] "true";"true";"true"
76
* eval db.writeln('"f39d198a-1e69-43cc-b359-cc60a8c22d28","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"f39d198a-1e69-43cc-b359-cc60a8c22d28","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f39d198a-1e69-43cc-b359-cc60a8c22d28","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.41:82] 4074b3c3-ca85-45ad-bc0d-b5fca8540z0b
ms: 557
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:14.802 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4074b3c3-ca85-45ad-bc0d-b5fca8540z0b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4074b3c3-ca85-45ad-bc0d-b5fca8540z0b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:15.351 [print] https://service.pdok.nl/kadaster/adressen/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:15.352 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:15.352 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:15.352 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:15.353 [print] Beheer PDOK
57
* print operateson
0
05:04:15.353 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76091be7-358a-4a44-8182-b4139c96c6a4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:15.355 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:15.357 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:15.358 [print] "true";"true"
76
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540z0b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540z0b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540z0b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.42:82] 3094a1c4-3dd6-4e8e-9929-4a63dd66992e
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:14.896 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3094a1c4-3dd6-4e8e-9929-4a63dd66992e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
547
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3094a1c4-3dd6-4e8e-9929-4a63dd66992e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:15.453 [print] http:\/\/services.inspire-provincies.nl\/ProductionAndIndustrialFacilities\/services\/download_PF?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:15.454 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:15.455 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:15.455 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:15.456 [print] Interprovinciaal Overleg
57
* print operateson
1
05:04:15.457 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=8e986f37-74d7-4b6c-8026-87c960456423&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=afc450bd-65b3-4e59-b0fb-619869bf6ada&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:15.459 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:15.461 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.0";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
1
71
* print corConformancePass
0
05:04:15.462 [print] "false";"true";"true"
76
* eval db.writeln('"3094a1c4-3dd6-4e8e-9929-4a63dd66992e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"3094a1c4-3dd6-4e8e-9929-4a63dd66992e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"3094a1c4-3dd6-4e8e-9929-4a63dd66992e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.43:82] eec0708d-bab6-41c2-aa5b-9c435a1a177e
ms: 589
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:14.975 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eec0708d-bab6-41c2-aa5b-9c435a1a177e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
572
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eec0708d-bab6-41c2-aa5b-9c435a1a177e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:15.556 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:15.557 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:15.558 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:15.558 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:15.559 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
05:04:15.559 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:15.560 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:15.562 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:15.563 [print] true
76
* eval db.writeln('"eec0708d-bab6-41c2-aa5b-9c435a1a177e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"eec0708d-bab6-41c2-aa5b-9c435a1a177e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"eec0708d-bab6-41c2-aa5b-9c435a1a177e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.44:82] 91041d33-54f8-40f1-8965-a867ba00cab8
ms: 591
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:15.081 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
8
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '91041d33-54f8-40f1-8965-a867ba00cab8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '91041d33-54f8-40f1-8965-a867ba00cab8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:15.655 [print] https://inspire.caris.nl/geoserver2/gn/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:15.656 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
6
05:04:15.663 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:15.663 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:15.665 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:15.665 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/xml.metadata.get?uuid=34e95842-4e4e-46de-9198-79e8cd4d30dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:15.667 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:15.669 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:15.671 [print] "true";"true"
76
* eval db.writeln('"91041d33-54f8-40f1-8965-a867ba00cab8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"91041d33-54f8-40f1-8965-a867ba00cab8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"91041d33-54f8-40f1-8965-a867ba00cab8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.45:82] 73286af2-d0f4-4a62-9455-86ffa45ef279
ms: 599
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:15.362 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '73286af2-d0f4-4a62-9455-86ffa45ef279'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '73286af2-d0f4-4a62-9455-86ffa45ef279'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
17
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
3
45
* print connectUrl
1
05:04:15.951 [print] https://www.gdngeoservices.nl/inspire/wfs/zoutvelden_en_productieputten?service=WFS&request=GetCapabilities&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
2
05:04:15.953 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:04:15.954 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:15.955 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:15.956 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
05:04:15.956 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=e3b0da1e-0664-4025-b3f5-a54d74a26450&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:15.958 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:15.959 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:15.960 [print] "true";"true"
76
* eval db.writeln('"73286af2-d0f4-4a62-9455-86ffa45ef279","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"73286af2-d0f4-4a62-9455-86ffa45ef279","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"73286af2-d0f4-4a62-9455-86ffa45ef279","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.46:82] 82fa284e-8218-40e4-a593-c2f8a832c3d5
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:15.467 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '82fa284e-8218-40e4-a593-c2f8a832c3d5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '82fa284e-8218-40e4-a593-c2f8a832c3d5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:16.027 [print] https://www.gdngeoservices.nl/inspire/wms/olie_en_gasvelden?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:16.028 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:04:16.029 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:16.030 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:04:16.031 [print] TNO Geologische Dienst Nederland
57
* print operateson
1
05:04:16.032 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=b61a773c-ecad-4e60-93e9-0a4caac0b52f&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:04:16.034 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:16.035 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:16.037 [print] "true";"false"
76
* eval db.writeln('"82fa284e-8218-40e4-a593-c2f8a832c3d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"82fa284e-8218-40e4-a593-c2f8a832c3d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"82fa284e-8218-40e4-a593-c2f8a832c3d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.47:82] 7d533012-21ad-4a5b-a97e-a76988270273
ms: 637
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:15.567 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7d533012-21ad-4a5b-a97e-a76988270273'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
619
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7d533012-21ad-4a5b-a97e-a76988270273'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:16.196 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:16.197 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:16.198 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:16.198 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:16.199 [print] KNMI
57
* print operateson
0
05:04:16.199 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:16.201 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:16.202 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:16.203 [print] true
76
* eval db.writeln('"7d533012-21ad-4a5b-a97e-a76988270273","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7d533012-21ad-4a5b-a97e-a76988270273","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7d533012-21ad-4a5b-a97e-a76988270273","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.48:82] 9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40
ms: 594
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:15.675 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
568
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:16.254 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.0f6d394b-5d46-4e53-a985-8fd3bb721d8e?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:16.255 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:16.257 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:16.257 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:16.258 [print] KNMI
57
* print operateson
0
05:04:16.259 [print] https://haleconnect.com/services/bsp/org.874.0f6d394b-5d46-4e53-a985-8fd3bb721d8e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:16.261 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:16.262 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:16.264 [print] true
76
* eval db.writeln('"9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
5
78
* eval db.writeln('"9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.49:82] 224d93f6-0e4e-41fe-8424-1ab11a6c55ed
ms: 555
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:15.965 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '224d93f6-0e4e-41fe-8424-1ab11a6c55ed'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
537
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '224d93f6-0e4e-41fe-8424-1ab11a6c55ed'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:16.512 [print] https://inspire.rivm.nl/geoserver/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:16.513 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:16.514 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:16.514 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:16.515 [print] RIVM
57
* print operateson
0
05:04:16.515 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=36a7e8cb-8300-4602-93d2-135943365a6f
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:16.517 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:16.518 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:16.519 [print] "true";"true";"true"
76
* eval db.writeln('"224d93f6-0e4e-41fe-8424-1ab11a6c55ed","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"224d93f6-0e4e-41fe-8424-1ab11a6c55ed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"224d93f6-0e4e-41fe-8424-1ab11a6c55ed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.50:82] a12ae6ca-b755-4707-884f-95c0d66f431a
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:16.043 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a12ae6ca-b755-4707-884f-95c0d66f431a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a12ae6ca-b755-4707-884f-95c0d66f431a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:16.603 [print] https://inspire.caris.nl/gs5/MarineRegion/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:16.604 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:16.605 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:16.605 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:16.606 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:16.606 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f44dac86-2228-412f-8355-e56446ca9933#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:16.607 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:16.608 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:16.609 [print] "true";"true"
76
* eval db.writeln('"a12ae6ca-b755-4707-884f-95c0d66f431a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a12ae6ca-b755-4707-884f-95c0d66f431a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a12ae6ca-b755-4707-884f-95c0d66f431a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.51:82] 777f41ee-8269-4bbc-b0e4-f889c62be099
ms: 613
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:16.211 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '777f41ee-8269-4bbc-b0e4-f889c62be099'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
596
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '777f41ee-8269-4bbc-b0e4-f889c62be099'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:16.818 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:16.819 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:16.820 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:16.820 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:16.821 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:04:16.821 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=50a2c5e6-c8e7-425d-854e-26f578196bc9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:16.822 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:16.823 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:16.824 [print] "false";"false"
76
* eval db.writeln('"777f41ee-8269-4bbc-b0e4-f889c62be099","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"777f41ee-8269-4bbc-b0e4-f889c62be099","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"777f41ee-8269-4bbc-b0e4-f889c62be099","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.52:82] cd370f58-0e54-48d6-b83b-ccd332bfb7c7
ms: 592
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:16.273 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cd370f58-0e54-48d6-b83b-ccd332bfb7c7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
571
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cd370f58-0e54-48d6-b83b-ccd332bfb7c7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:16.854 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:16.855 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:16.856 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:16.857 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:16.858 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:04:16.858 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ad6caa40-89ab-47e3-85ab-3f8e32024a71#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:16.860 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:16.861 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:16.863 [print] "false";"false"
76
* eval db.writeln('"cd370f58-0e54-48d6-b83b-ccd332bfb7c7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
2
77
* eval db.writeln('"cd370f58-0e54-48d6-b83b-ccd332bfb7c7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"cd370f58-0e54-48d6-b83b-ccd332bfb7c7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.53:82] 2c2cc118-dee5-448f-9658-e2649bcb7d7f
ms: 608
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:16.523 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2c2cc118-dee5-448f-9658-e2649bcb7d7f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
592
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2c2cc118-dee5-448f-9658-e2649bcb7d7f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:17.124 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.794fa9da-8bf0-4053-83d8-1174f2317dcb?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:17.125 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:17.125 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:17.125 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:17.126 [print] KNMI
57
* print operateson
0
05:04:17.126 [print] https://haleconnect.com/services/bsp/org.874.794fa9da-8bf0-4053-83d8-1174f2317dcb/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:17.128 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:17.129 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:17.130 [print] true
76
* eval db.writeln('"2c2cc118-dee5-448f-9658-e2649bcb7d7f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2c2cc118-dee5-448f-9658-e2649bcb7d7f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"2c2cc118-dee5-448f-9658-e2649bcb7d7f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.54:82] ebd6ea46-ee7b-432f-83c4-058c889a790d
ms: 583
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:16.613 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ebd6ea46-ee7b-432f-83c4-058c889a790d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ebd6ea46-ee7b-432f-83c4-058c889a790d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:17.178 [print] http:\/\/services.inspire-provincies.nl\/EnvironmentalMonitoringFacilities\/services\/download_EF?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
1
05:04:17.181 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:17.182 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:17.183 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:17.184 [print] Interprovinciaal Overleg
57
* print operateson
1
05:04:17.184 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=c829abeb-bfac-4224-8332-e7a9a89e692e&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=fe45c540-e37d-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:17.186 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:17.188 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.0";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:17.189 [print] "false";"true";"true"
76
* eval db.writeln('"ebd6ea46-ee7b-432f-83c4-058c889a790d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
2
77
* eval db.writeln('"ebd6ea46-ee7b-432f-83c4-058c889a790d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ebd6ea46-ee7b-432f-83c4-058c889a790d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
6
Scenario: [1.55:82] 87a382da-c6dc-403c-a006-2379eb6daaa6
ms: 578
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:16.828 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '87a382da-c6dc-403c-a006-2379eb6daaa6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '87a382da-c6dc-403c-a006-2379eb6daaa6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:17.395 [print] https://inspire.caris.nl/gs5/pssa_nl/ows?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
5
50
* print protocol1
0
05:04:17.400 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:17.401 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:17.401 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:17.402 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:17.402 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=f1d27179-36eb-4376-8048-f51d2eb23a09&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:17.403 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:17.405 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:17.405 [print] "true";"true"
76
* eval db.writeln('"87a382da-c6dc-403c-a006-2379eb6daaa6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"87a382da-c6dc-403c-a006-2379eb6daaa6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"87a382da-c6dc-403c-a006-2379eb6daaa6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.56:82] 74620aa8-4fa2-414d-8350-50d93e500da8
ms: 605
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:16.868 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
6
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '74620aa8-4fa2-414d-8350-50d93e500da8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
572
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '74620aa8-4fa2-414d-8350-50d93e500da8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:17.455 [print] https:\/\/geodata.nationaalgeoregister.nl\/rwsgeluidskaarten\/wfs?service=WFS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:17.456 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:17.457 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:17.457 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:17.459 [print] Beheer PDOK
57
* print operateson
1
05:04:17.459 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9b583730-e750-485a-9c0c-39bf9be72cf8","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a57cb859-c4fe-444c-adc6-be14cb2bbf36","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9b583730-e750-485a-9c0c-39bf9be72cf9","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a57cb859-c4fe-444c-adc6-be14cb2bbf38"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
5
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
5
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:17.470 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:17.471 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:17.473 [print] "true";"true"
76
* eval db.writeln('"74620aa8-4fa2-414d-8350-50d93e500da8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"74620aa8-4fa2-414d-8350-50d93e500da8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"74620aa8-4fa2-414d-8350-50d93e500da8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.57:82] 2d1860f2-f8ba-457e-bd64-93cdabd69aee
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:17.133 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2d1860f2-f8ba-457e-bd64-93cdabd69aee'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2d1860f2-f8ba-457e-bd64-93cdabd69aee'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:17.698 [print] https://inspire.caris.nl/geoserver/cz/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:17.699 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:17.700 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:17.700 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:17.701 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:17.701 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=060d1139-c371-4c1e-9890-55999adfa4f9&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:17.702 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:17.703 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:17.704 [print] "true";"true"
76
* eval db.writeln('"2d1860f2-f8ba-457e-bd64-93cdabd69aee","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2d1860f2-f8ba-457e-bd64-93cdabd69aee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2d1860f2-f8ba-457e-bd64-93cdabd69aee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.58:82] 2f28bd85-0afc-4dc1-85f3-dac55c1b485e
ms: 596
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:17.200 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2f28bd85-0afc-4dc1-85f3-dac55c1b485e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
580
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2f28bd85-0afc-4dc1-85f3-dac55c1b485e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:17.789 [print] https://haleconnect.com/ows/services/org.874.c4108a11-bdbb-4461-8902-423531561a7e_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:17.790 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:17.790 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:17.790 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:17.791 [print] KNMI
57
* print operateson
0
05:04:17.791 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:17.793 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:17.794 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:17.795 [print] true
76
* eval db.writeln('"2f28bd85-0afc-4dc1-85f3-dac55c1b485e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"2f28bd85-0afc-4dc1-85f3-dac55c1b485e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"2f28bd85-0afc-4dc1-85f3-dac55c1b485e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.59:82] 7b4a0b26-5885-45cd-a99d-27887cff68e5
ms: 586
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:17.410 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7b4a0b26-5885-45cd-a99d-27887cff68e5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
566
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7b4a0b26-5885-45cd-a99d-27887cff68e5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:17.985 [print] https://www.broinspireservices.nl/wms/ossosgm-a-v1.0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:17.987 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:04:17.988 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:17.988 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:17.989 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
05:04:17.990 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=a7fb2234-f7b4-4a03-b282-f10947f42fb1&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:17.992 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:17.993 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:17.994 [print] "true";"false"
76
* eval db.writeln('"7b4a0b26-5885-45cd-a99d-27887cff68e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7b4a0b26-5885-45cd-a99d-27887cff68e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7b4a0b26-5885-45cd-a99d-27887cff68e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.60:82] 0606e8cb-fa51-402c-a3be-19fd724b0a10
ms: 569
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:17.477 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0606e8cb-fa51-402c-a3be-19fd724b0a10'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0606e8cb-fa51-402c-a3be-19fd724b0a10'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:18.037 [print] https://inspire.rivm.nl/geoserver/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:18.038 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:04:18.039 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:18.039 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:18.040 [print] RIVM
57
* print operateson
0
05:04:18.041 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:18.043 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:18.044 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:18.046 [print] "true";"true";"true"
76
* eval db.writeln('"0606e8cb-fa51-402c-a3be-19fd724b0a10","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0606e8cb-fa51-402c-a3be-19fd724b0a10","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"0606e8cb-fa51-402c-a3be-19fd724b0a10","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.61:82] 8a772a52-d659-47b3-a131-82398fb78664
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:17.707 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8a772a52-d659-47b3-a131-82398fb78664'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
553
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8a772a52-d659-47b3-a131-82398fb78664'
3
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:18.270 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:18.271 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:18.272 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:18.272 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:18.273 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
05:04:18.273 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:18.275 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:18.276 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:18.276 [print] true
76
* eval db.writeln('"8a772a52-d659-47b3-a131-82398fb78664","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"8a772a52-d659-47b3-a131-82398fb78664","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8a772a52-d659-47b3-a131-82398fb78664","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.62:82] 5255c080-5f4e-4f7a-8a2c-6ac9d0103288
ms: 601
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:17.800 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5255c080-5f4e-4f7a-8a2c-6ac9d0103288'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
586
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5255c080-5f4e-4f7a-8a2c-6ac9d0103288'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:18.395 [print] https://inspire.rivm.nl/geoserver/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:18.396 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:18.397 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:18.397 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:18.398 [print] RIVM
57
* print operateson
0
05:04:18.398 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f8d840bc-18df-4449-b797-b9adcb81d3ec
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:18.399 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:18.400 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:18.401 [print] "true";"true";"true"
76
* eval db.writeln('"5255c080-5f4e-4f7a-8a2c-6ac9d0103288","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5255c080-5f4e-4f7a-8a2c-6ac9d0103288","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"5255c080-5f4e-4f7a-8a2c-6ac9d0103288","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.63:82] 00e8746f-5031-413e-8343-9203c8ea82ee
ms: 589
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:17.999 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '00e8746f-5031-413e-8343-9203c8ea82ee'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
572
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '00e8746f-5031-413e-8343-9203c8ea82ee'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:18.581 [print] http://services.inspire-provincies.nl/NaturalRiskZones/services/download_NZ?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:18.582 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:18.583 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:18.583 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:18.584 [print] Interprovinciaal Overleg
57
* print operateson
0
05:04:18.584 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=88f76a94-ee4d-4e0c-9fde-91b692403e39&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=08af1182-91fe-4d21-aa21-ee002953c3cc&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=d91126e0-e37b-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=667ebfb0-e37c-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:18.586 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:18.587 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.0";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:18.588 [print] "false";"true";"true"
76
* eval db.writeln('"00e8746f-5031-413e-8343-9203c8ea82ee","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"00e8746f-5031-413e-8343-9203c8ea82ee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"00e8746f-5031-413e-8343-9203c8ea82ee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.64:82] bd14098b-44e6-47e5-959d-f40dda65da5a
ms: 600
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:18.050 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bd14098b-44e6-47e5-959d-f40dda65da5a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
573
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bd14098b-44e6-47e5-959d-f40dda65da5a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:18.632 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:18.634 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:18.635 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:18.636 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:04:18.637 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
1
05:04:18.638 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9baa847-4652-4588-abe1-0b050f40f27f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:18.640 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:18.641 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:18.643 [print] "false";"false"
76
* eval db.writeln('"bd14098b-44e6-47e5-959d-f40dda65da5a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bd14098b-44e6-47e5-959d-f40dda65da5a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
2
78
* eval db.writeln('"bd14098b-44e6-47e5-959d-f40dda65da5a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
5
Scenario: [1.65:82] 23aa5150-fcc7-46ea-ae63-a7f198d8bc18
ms: 589
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:18.280 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '23aa5150-fcc7-46ea-ae63-a7f198d8bc18'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
563
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '23aa5150-fcc7-46ea-ae63-a7f198d8bc18'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:18.853 [print] https://inspire.rivm.nl/geoserver/airq/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:18.854 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
5
05:04:18.855 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
05:04:18.861 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:04:18.862 [print] RIVM
57
* print operateson
1
05:04:18.863 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2cc2c30c-91b8-412a-a060-e84d25272581
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:04:18.865 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:18.867 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:18.868 [print] "true";"true";"true"
76
* eval db.writeln('"23aa5150-fcc7-46ea-ae63-a7f198d8bc18","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"23aa5150-fcc7-46ea-ae63-a7f198d8bc18","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"23aa5150-fcc7-46ea-ae63-a7f198d8bc18","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.66:82] 95664230-19bc-4f33-b2cf-10aedbe75c11
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:18.406 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '95664230-19bc-4f33-b2cf-10aedbe75c11'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
544
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '95664230-19bc-4f33-b2cf-10aedbe75c11'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:18.961 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.0f6d394b-5d46-4e53-a985-8fd3bb721d8e?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:18.962 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:18.964 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:18.964 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:18.965 [print] KNMI
57
* print operateson
0
05:04:18.965 [print] https://haleconnect.com/services/bsp/org.874.0f6d394b-5d46-4e53-a985-8fd3bb721d8e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:18.967 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:18.969 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:18.970 [print] true
76
* eval db.writeln('"95664230-19bc-4f33-b2cf-10aedbe75c11","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"95664230-19bc-4f33-b2cf-10aedbe75c11","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"95664230-19bc-4f33-b2cf-10aedbe75c11","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.67:82] fa3ecd49-4571-4eb3-84f3-2865f42934b2
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:18.592 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'fa3ecd49-4571-4eb3-84f3-2865f42934b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fa3ecd49-4571-4eb3-84f3-2865f42934b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:19.153 [print] https://www.gdngeoservices.nl/inspire/wfs/olie_en_gasvelden?service=WFS&request=GetCapabilities&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:19.154 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:19.154 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:19.155 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:19.156 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
05:04:19.156 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=b61a773c-ecad-4e60-93e9-0a4caac0b52f&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:19.157 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:19.159 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:19.160 [print] "true";"true"
76
* eval db.writeln('"fa3ecd49-4571-4eb3-84f3-2865f42934b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"fa3ecd49-4571-4eb3-84f3-2865f42934b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"fa3ecd49-4571-4eb3-84f3-2865f42934b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.68:82] 9de0d2fa-debc-4f27-8298-5399b7844962
ms: 626
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:18.654 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9de0d2fa-debc-4f27-8298-5399b7844962'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
609
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9de0d2fa-debc-4f27-8298-5399b7844962'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:19.272 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.1d098355-23c3-4bd3-adf6-192549933ec3?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:19.273 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:19.274 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:19.274 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:19.275 [print] KNMI
57
* print operateson
0
05:04:19.276 [print] https://haleconnect.com/services/bsp/org.874.1d098355-23c3-4bd3-adf6-192549933ec3/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:19.277 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:19.278 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:19.279 [print] true
76
* eval db.writeln('"9de0d2fa-debc-4f27-8298-5399b7844962","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"9de0d2fa-debc-4f27-8298-5399b7844962","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9de0d2fa-debc-4f27-8298-5399b7844962","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.69:82] 95e2c712-1b91-4f24-9453-c56b95227717
ms: 589
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:18.873 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '95e2c712-1b91-4f24-9453-c56b95227717'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
571
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '95e2c712-1b91-4f24-9453-c56b95227717'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:19.453 [print] https://inspire.rivm.nl/geoserver/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:19.454 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:19.455 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:19.455 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:19.456 [print] RIVM
57
* print operateson
0
05:04:19.456 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:19.458 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:19.459 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:19.460 [print] "true";"true";"true"
76
* eval db.writeln('"95e2c712-1b91-4f24-9453-c56b95227717","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"95e2c712-1b91-4f24-9453-c56b95227717","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"95e2c712-1b91-4f24-9453-c56b95227717","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.70:82] c7dad4b9-42a8-452f-a33b-d4938ed22142
ms: 632
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:18.976 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c7dad4b9-42a8-452f-a33b-d4938ed22142'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
613
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c7dad4b9-42a8-452f-a33b-d4938ed22142'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:19.599 [print] https://inspire.caris.nl/gs5/MarineRegion/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:19.600 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:19.601 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:19.601 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:19.602 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:19.603 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f44dac86-2228-412f-8355-e56446ca9933#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:19.605 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:19.606 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:19.607 [print] "true";"true"
76
* eval db.writeln('"c7dad4b9-42a8-452f-a33b-d4938ed22142","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c7dad4b9-42a8-452f-a33b-d4938ed22142","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c7dad4b9-42a8-452f-a33b-d4938ed22142","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.71:82] a6098c24-4caf-4528-954c-672b9ec6cf78
ms: 610
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:19.163 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a6098c24-4caf-4528-954c-672b9ec6cf78'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
588
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a6098c24-4caf-4528-954c-672b9ec6cf78'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:19.761 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:19.762 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:19.763 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:19.764 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:19.765 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:04:19.765 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=32a21114-8694-40ce-ab76-9dcd885c7861#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:19.767 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:19.769 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:19.770 [print] "false";"false"
76
* eval db.writeln('"a6098c24-4caf-4528-954c-672b9ec6cf78","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a6098c24-4caf-4528-954c-672b9ec6cf78","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
2
78
* eval db.writeln('"a6098c24-4caf-4528-954c-672b9ec6cf78","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.72:82] 1e01d173-96f4-40b1-8236-c6a9cfdac252
ms: 589
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:19.283 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1e01d173-96f4-40b1-8236-c6a9cfdac252'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
571
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1e01d173-96f4-40b1-8236-c6a9cfdac252'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:19.863 [print] https://haleconnect.com/ows/services/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:19.865 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:19.866 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:19.866 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:19.867 [print] KNMI
57
* print operateson
0
05:04:19.868 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:19.869 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:19.871 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:19.872 [print] true
76
* eval db.writeln('"1e01d173-96f4-40b1-8236-c6a9cfdac252","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1e01d173-96f4-40b1-8236-c6a9cfdac252","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"1e01d173-96f4-40b1-8236-c6a9cfdac252","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.73:82] 03c39474-aef9-4169-95da-9890af440b14
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:19.465 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '03c39474-aef9-4169-95da-9890af440b14'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
553
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '03c39474-aef9-4169-95da-9890af440b14'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:20.028 [print] https://inspire.rivm.nl/geoserver/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:20.029 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:20.030 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:20.030 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:20.032 [print] RIVM
57
* print operateson
0
05:04:20.032 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=08b27bf0-e34a-4b30-9eac-5edadfb6a288
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:20.034 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:20.035 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
5
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:20.041 [print] "true";"true";"true"
76
* eval db.writeln('"03c39474-aef9-4169-95da-9890af440b14","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"03c39474-aef9-4169-95da-9890af440b14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"03c39474-aef9-4169-95da-9890af440b14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.74:82] 755d488b-7b94-4883-95be-6aa279604f85
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:19.611 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '755d488b-7b94-4883-95be-6aa279604f85'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
544
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '755d488b-7b94-4883-95be-6aa279604f85'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:20.165 [print] https://inspire.rivm.nl/geoserver/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:20.166 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:20.167 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:20.167 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:04:20.168 [print] RIVM
57
* print operateson
0
05:04:20.169 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=36a7e8cb-8300-4602-93d2-135943365a6f
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:20.171 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:20.172 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:20.174 [print] "true";"true";"true"
76
* eval db.writeln('"755d488b-7b94-4883-95be-6aa279604f85","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"755d488b-7b94-4883-95be-6aa279604f85","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"755d488b-7b94-4883-95be-6aa279604f85","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.75:82] 5dfccef3-9b52-47f2-bb02-66b74aaf3af8
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:19.777 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5dfccef3-9b52-47f2-bb02-66b74aaf3af8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5dfccef3-9b52-47f2-bb02-66b74aaf3af8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:20.336 [print] https://inspire.caris.nl/geoserver/tz/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:20.337 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:20.338 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:20.338 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:20.339 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:20.339 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=4d514a2b-4a7e-4686-b9ea-87cb3e17ed52&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:20.341 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:20.342 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:20.343 [print] "true";"true"
76
* eval db.writeln('"5dfccef3-9b52-47f2-bb02-66b74aaf3af8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"5dfccef3-9b52-47f2-bb02-66b74aaf3af8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"5dfccef3-9b52-47f2-bb02-66b74aaf3af8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.76:82] 70bf4086-b557-4803-96d3-6dc397a5b135
ms: 543
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:19.881 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
1
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '70bf4086-b557-4803-96d3-6dc397a5b135'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
527
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '70bf4086-b557-4803-96d3-6dc397a5b135'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:20.418 [print] https://inspire.caris.nl/geoserver/baseline/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:20.418 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:20.419 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:20.420 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:20.420 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:20.421 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=1249746f-c2a6-4639-98f2-251676b3528e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:20.422 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:20.423 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:20.424 [print] "true";"true"
76
* eval db.writeln('"70bf4086-b557-4803-96d3-6dc397a5b135","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"70bf4086-b557-4803-96d3-6dc397a5b135","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"70bf4086-b557-4803-96d3-6dc397a5b135","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.77:82] b145a28d-70fd-4a8e-9750-3865bbcc5bea
ms: 603
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:20.045 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b145a28d-70fd-4a8e-9750-3865bbcc5bea'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
586
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b145a28d-70fd-4a8e-9750-3865bbcc5bea'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:20.640 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.1fe64439-81bd-4adb-8a64-957200a4a48a?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:20.641 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:20.642 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:20.642 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:20.643 [print] KNMI
57
* print operateson
0
05:04:20.644 [print] https://haleconnect.com/services/bsp/org.874.1fe64439-81bd-4adb-8a64-957200a4a48a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:20.645 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:20.646 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:20.647 [print] true
76
* eval db.writeln('"b145a28d-70fd-4a8e-9750-3865bbcc5bea","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"b145a28d-70fd-4a8e-9750-3865bbcc5bea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b145a28d-70fd-4a8e-9750-3865bbcc5bea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.78:82] e010ca7e-090b-4e38-9ce3-561dcf94fb63
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:20.178 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e010ca7e-090b-4e38-9ce3-561dcf94fb63'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e010ca7e-090b-4e38-9ce3-561dcf94fb63'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:20.748 [print] https://service.pdok.nl/rws/geluidbelasting/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:20.749 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:20.750 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:20.750 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:20.751 [print] Beheer PDOK
57
* print operateson
0
05:04:20.751 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=undefined#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=undefined#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9b583730-e750-485a-9c0c-39bf9be72cf8#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=undefined#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:20.752 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:20.753 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:20.754 [print] "true";"true"
76
* eval db.writeln('"e010ca7e-090b-4e38-9ce3-561dcf94fb63","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e010ca7e-090b-4e38-9ce3-561dcf94fb63","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"e010ca7e-090b-4e38-9ce3-561dcf94fb63","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.79:82] 0bb27a13-76f1-4374-8d44-76e937198e8d
ms: 600
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:20.347 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0bb27a13-76f1-4374-8d44-76e937198e8d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
564
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0bb27a13-76f1-4374-8d44-76e937198e8d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:20.921 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-Maritieme-grenzen-Noordzee.gml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:20.922 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:20.923 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:20.924 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:20.925 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:20.925 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=a5241416-8401-4623-be61-57ef50447a41&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:20.927 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:20.928 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Dataset is geharmoniseerd";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
18
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
05:04:20.947 [print] "true";"true"
76
* eval db.writeln('"0bb27a13-76f1-4374-8d44-76e937198e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0bb27a13-76f1-4374-8d44-76e937198e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0bb27a13-76f1-4374-8d44-76e937198e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.80:82] f0eb64f9-8888-42e1-9550-bf91c32da4bc
ms: 556
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:20.428 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f0eb64f9-8888-42e1-9550-bf91c32da4bc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
537
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f0eb64f9-8888-42e1-9550-bf91c32da4bc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:20.975 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:20.976 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:20.977 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:20.977 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:20.978 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:04:20.979 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e1e99000-ec47-4e9f-84a5-adad24fef0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:20.981 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:20.982 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:20.984 [print] "false";"false"
76
* eval db.writeln('"f0eb64f9-8888-42e1-9550-bf91c32da4bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f0eb64f9-8888-42e1-9550-bf91c32da4bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f0eb64f9-8888-42e1-9550-bf91c32da4bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.81:82] 17db4dd9-462f-4b9e-b14f-0004cacdafbb
ms: 588
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:20.651 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '17db4dd9-462f-4b9e-b14f-0004cacdafbb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
571
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '17db4dd9-462f-4b9e-b14f-0004cacdafbb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:21.231 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.c9827525-5ea6-47bc-aa4a-3fa9665f0327?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:21.232 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:21.233 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:21.233 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:21.234 [print] KNMI
57
* print operateson
0
05:04:21.235 [print] https://haleconnect.com/services/bsp/org.874.c9827525-5ea6-47bc-aa4a-3fa9665f0327/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:21.236 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:21.237 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:21.238 [print] true
76
* eval db.writeln('"17db4dd9-462f-4b9e-b14f-0004cacdafbb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"17db4dd9-462f-4b9e-b14f-0004cacdafbb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"17db4dd9-462f-4b9e-b14f-0004cacdafbb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.82:82] c99b1291-c51f-49c8-902d-5bd4148cbbde
ms: 598
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:20.757 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c99b1291-c51f-49c8-902d-5bd4148cbbde'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
579
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c99b1291-c51f-49c8-902d-5bd4148cbbde'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:21.346 [print] http:\/\/services.inspire-provincies.nl\/HabitatsAndBiotopes\/services\/view_HB?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:21.348 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:21.349 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:21.349 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:21.350 [print] Interprovinciaal Overleg
57
* print operateson
0
05:04:21.350 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/nl/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=88e2a6fa-b296-4ff4-bc30-fb87e2c1627e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:21.352 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:21.354 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services 3.1";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:21.355 [print] "false";"true";"true"
76
* eval db.writeln('"c99b1291-c51f-49c8-902d-5bd4148cbbde","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"c99b1291-c51f-49c8-902d-5bd4148cbbde","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c99b1291-c51f-49c8-902d-5bd4148cbbde","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.83:82] 243c6401-9ed1-4cdd-b9a7-caff08813ce4
ms: 569
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:20.955 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '243c6401-9ed1-4cdd-b9a7-caff08813ce4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '243c6401-9ed1-4cdd-b9a7-caff08813ce4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:21.515 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-EEZ-volgens-UNCLOS-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:21.516 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:21.518 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:21.518 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:21.519 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:21.519 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e8b84fae-00b3-49c1-80c1-df8f69f64e8c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:21.521 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:21.522 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:21.524 [print] "true";"true"
76
* eval db.writeln('"243c6401-9ed1-4cdd-b9a7-caff08813ce4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"243c6401-9ed1-4cdd-b9a7-caff08813ce4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"243c6401-9ed1-4cdd-b9a7-caff08813ce4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.84:82] ce0a3f8e-6713-455f-805e-a067162c287d
ms: 593
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:20.988 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ce0a3f8e-6713-455f-805e-a067162c287d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
577
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ce0a3f8e-6713-455f-805e-a067162c287d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:21.574 [print] https://haleconnect.com/ows/services/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:21.575 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:21.576 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:21.576 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:21.577 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
05:04:21.577 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:21.579 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:21.580 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:21.581 [print] true
76
* eval db.writeln('"ce0a3f8e-6713-455f-805e-a067162c287d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ce0a3f8e-6713-455f-805e-a067162c287d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ce0a3f8e-6713-455f-805e-a067162c287d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.85:82] 702060c1-b3fd-44ec-8cc6-d4249d150110
ms: 583
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:21.242 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '702060c1-b3fd-44ec-8cc6-d4249d150110'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
566
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '702060c1-b3fd-44ec-8cc6-d4249d150110'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:21.818 [print] http://services.inspire-provincies.nl/HabitatsAndBiotopes/services/download_HB?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:21.819 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:21.820 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:21.820 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:21.821 [print] Interprovinciaal Overleg
57
* print operateson
0
05:04:21.821 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/nl/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=88e2a6fa-b296-4ff4-bc30-fb87e2c1627e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:21.822 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:21.823 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.0";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:21.824 [print] "false";"true";"true"
76
* eval db.writeln('"702060c1-b3fd-44ec-8cc6-d4249d150110","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"702060c1-b3fd-44ec-8cc6-d4249d150110","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"702060c1-b3fd-44ec-8cc6-d4249d150110","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.86:82] 7977f282-433e-41f9-940b-63f5d28ee44c
ms: 651
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:21.359 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7977f282-433e-41f9-940b-63f5d28ee44c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
636
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7977f282-433e-41f9-940b-63f5d28ee44c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:22.004 [print] https://service.pdok.nl/provincies/stiltegebieden/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:22.005 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:22.006 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:22.006 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:22.007 [print] Beheer PDOK
57
* print operateson
0
05:04:22.007 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:22.008 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:22.009 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:22.010 [print] "true";"true"
76
* eval db.writeln('"7977f282-433e-41f9-940b-63f5d28ee44c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7977f282-433e-41f9-940b-63f5d28ee44c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7977f282-433e-41f9-940b-63f5d28ee44c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.87:82] 6d2fce74-fb25-4322-ab25-1be8a3bc7fd0
ms: 596
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:21.527 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6d2fce74-fb25-4322-ab25-1be8a3bc7fd0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
582
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6d2fce74-fb25-4322-ab25-1be8a3bc7fd0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:22.118 [print] https://inspire.caris.nl/geoserver3/bathy_wcs/wcs?request=GetCapabilities&service=WCS&version=2.0.1
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:22.119 [print] OGC:WCS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:22.120 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:22.120 [print] OGC:WCS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:22.120 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:22.121 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a322184d-6285-4856-bb78-f450b30ffc0e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:22.122 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:22.123 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services 2.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:22.124 [print] "true";"true"
76
* eval db.writeln('"6d2fce74-fb25-4322-ab25-1be8a3bc7fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6d2fce74-fb25-4322-ab25-1be8a3bc7fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"6d2fce74-fb25-4322-ab25-1be8a3bc7fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.88:82] 62b01550-9007-4634-b008-bd6071b34b2c
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:21.584 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '62b01550-9007-4634-b008-bd6071b34b2c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
547
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '62b01550-9007-4634-b008-bd6071b34b2c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:22.139 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.1d098355-23c3-4bd3-adf6-192549933ec3?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:22.140 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:22.141 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:22.141 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:22.142 [print] KNMI
57
* print operateson
0
05:04:22.142 [print] https://haleconnect.com/services/bsp/org.874.1d098355-23c3-4bd3-adf6-192549933ec3/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:22.143 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:22.144 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:22.145 [print] true
76
* eval db.writeln('"62b01550-9007-4634-b008-bd6071b34b2c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"62b01550-9007-4634-b008-bd6071b34b2c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"62b01550-9007-4634-b008-bd6071b34b2c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.89:82] c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:21.828 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:22.395 [print] https://inspire.caris.nl/gs5/ProspectingAndMiningPermitArea/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:22.396 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:22.396 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:22.396 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:22.397 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:22.397 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c2225e5d-b46f-4e38-8445-ab10fd40c0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:22.398 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:22.399 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:22.400 [print] "true";"true"
76
* eval db.writeln('"c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.90:82] a7e4bc31-60c1-4b78-bef1-eed768ceafa0
ms: 552
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:22.013 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a7e4bc31-60c1-4b78-bef1-eed768ceafa0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
537
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a7e4bc31-60c1-4b78-bef1-eed768ceafa0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:22.559 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:22.560 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:22.560 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:22.561 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:22.561 [print] KNMI
57
* print operateson
0
05:04:22.562 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:22.563 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:22.564 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:22.565 [print] true
76
* eval db.writeln('"a7e4bc31-60c1-4b78-bef1-eed768ceafa0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a7e4bc31-60c1-4b78-bef1-eed768ceafa0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a7e4bc31-60c1-4b78-bef1-eed768ceafa0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.91:82] 060d1139-c371-4c1e-9890-55999adfa4f9
ms: 587
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:22.127 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '060d1139-c371-4c1e-9890-55999adfa4f9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
567
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '060d1139-c371-4c1e-9890-55999adfa4f9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:22.702 [print] https://inspire.caris.nl/geoserver/boundary/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:22.703 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
3
52
* print protocol2
1
05:04:22.707 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:22.708 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:22.709 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
1
05:04:22.710 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=a5241416-8401-4623-be61-57ef50447a41&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:22.711 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:22.713 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:22.714 [print] "true";"true"
76
* eval db.writeln('"060d1139-c371-4c1e-9890-55999adfa4f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"060d1139-c371-4c1e-9890-55999adfa4f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"060d1139-c371-4c1e-9890-55999adfa4f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.92:82] 923a666c-ee4f-496c-8c85-94d5f81e1f30
ms: 601
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:22.149 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '923a666c-ee4f-496c-8c85-94d5f81e1f30'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
586
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '923a666c-ee4f-496c-8c85-94d5f81e1f30'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:22.743 [print] https://inspire.caris.nl/gs5/am/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:22.744 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:22.745 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:22.745 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:22.746 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:22.746 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:22.748 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:22.749 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:22.750 [print] "true";"true"
76
* eval db.writeln('"923a666c-ee4f-496c-8c85-94d5f81e1f30","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"923a666c-ee4f-496c-8c85-94d5f81e1f30","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"923a666c-ee4f-496c-8c85-94d5f81e1f30","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.93:82] ea4cb6a2-f637-413a-91cc-d58473c2f138
ms: 582
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:22.404 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ea4cb6a2-f637-413a-91cc-d58473c2f138'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
565
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ea4cb6a2-f637-413a-91cc-d58473c2f138'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:22.977 [print] http://services.inspire-provincies.nl/EnvironmentalMonitoringFacilities/services/view_EF?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:22.978 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:22.979 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:22.979 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:22.980 [print] Interprovinciaal Overleg
57
* print operateson
0
05:04:22.981 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=c829abeb-bfac-4224-8332-e7a9a89e692e&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=fe45c540-e37d-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:22.983 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:22.984 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services 3.1";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:22.985 [print] "false";"true";"true"
76
* eval db.writeln('"ea4cb6a2-f637-413a-91cc-d58473c2f138","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"ea4cb6a2-f637-413a-91cc-d58473c2f138","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ea4cb6a2-f637-413a-91cc-d58473c2f138","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.94:82] a02c6566-e0ad-4fc1-b217-67cc1099dea2
ms: 621
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:22.569 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a02c6566-e0ad-4fc1-b217-67cc1099dea2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
605
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a02c6566-e0ad-4fc1-b217-67cc1099dea2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:23.182 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:23.183 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:23.184 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:23.184 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:23.185 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:04:23.185 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:23.187 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:23.188 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:23.189 [print] "false";"false"
76
* eval db.writeln('"a02c6566-e0ad-4fc1-b217-67cc1099dea2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a02c6566-e0ad-4fc1-b217-67cc1099dea2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a02c6566-e0ad-4fc1-b217-67cc1099dea2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.95:82] 49ff0584-a173-4098-824c-119edf8447f7
ms: 691
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:22.717 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '49ff0584-a173-4098-824c-119edf8447f7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
650
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '49ff0584-a173-4098-824c-119edf8447f7'
22
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:23.398 [print] https:\/\/services.rce.geovoorziening.nl\/rce\/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:23.399 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:23.401 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:23.401 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:23.402 [print] Rijksdienst voor het Cultureel Erfgoed
57
* print operateson
1
05:04:23.403 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6f84efeb-fc1d-4565-a721-80735ea57dbd#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=4e2ef670-cddd-11dd-ad8b-0800200c9a66#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=88a3c1ae-902e-4efa-8663-ddd836101929#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:23.405 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:23.406 [print] "Nadere uitleg bij het al dan niet volledig voldoen aan de specificatie";"Nadere uitleg bij het al dan niet volledig voldoen aan de specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:23.408 [print] "true";"true"
76
* eval db.writeln('"49ff0584-a173-4098-824c-119edf8447f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"49ff0584-a173-4098-824c-119edf8447f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"49ff0584-a173-4098-824c-119edf8447f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.96:82] 3d143d7a-7599-4cda-bcc5-619b6201c47b
ms: 598
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:22.754 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
2
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3d143d7a-7599-4cda-bcc5-619b6201c47b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
579
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3d143d7a-7599-4cda-bcc5-619b6201c47b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:23.344 [print] https://service.pdok.nl/provincies/begrenzingen-vergunde-ontgrondingsgebieden-zand-grindwinning/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:23.344 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:23.346 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:23.346 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:23.347 [print] Beheer PDOK
57
* print operateson
0
05:04:23.347 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=58e7dc38-a498-4852-b4ef-908f5baa9056#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:23.349 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:23.350 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:23.351 [print] "true";"true"
76
* eval db.writeln('"3d143d7a-7599-4cda-bcc5-619b6201c47b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3d143d7a-7599-4cda-bcc5-619b6201c47b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3d143d7a-7599-4cda-bcc5-619b6201c47b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.97:82] d7a395a2-8673-4794-a5a6-fed6492cd580
ms: 619
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:22.989 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd7a395a2-8673-4794-a5a6-fed6492cd580'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
596
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd7a395a2-8673-4794-a5a6-fed6492cd580'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:23.596 [print] https:\/\/service.pdok.nl\/hwh\/luchtfotocir\/wms\/v1_0?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:23.598 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:04:23.599 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
05:04:23.600 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:04:23.601 [print] Beheer PDOK
57
* print operateson
1
05:04:23.602 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1be28290-55fa-4486-b9d3-b9d147117863#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=7c24ea89-074e-4c4f-91e3-d38e813e9cb6#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9ed6b8ed-254a-4745-a09a-3b57137d1b69#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4cfb1469-a152-4ba6-8fe9-4b627acd7ee0#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:23.604 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:23.606 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:23.607 [print] "true";"true"
76
* eval db.writeln('"d7a395a2-8673-4794-a5a6-fed6492cd580","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d7a395a2-8673-4794-a5a6-fed6492cd580","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"d7a395a2-8673-4794-a5a6-fed6492cd580","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.98:82] dd49e02c-ea87-4ffc-89dd-f888608d95b7
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:23.193 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dd49e02c-ea87-4ffc-89dd-f888608d95b7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dd49e02c-ea87-4ffc-89dd-f888608d95b7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:23.757 [print] https://geodata.nationaalgeoregister.nl/nationaleparken/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:23.758 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:23.759 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:23.759 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:23.760 [print] Beheer PDOK
57
* print operateson
0
05:04:23.760 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4961d305-fbb5-426a-9ba3-53e1ca5f3b18#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:23.762 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:23.763 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:23.763 [print] "true";"true"
76
* eval db.writeln('"dd49e02c-ea87-4ffc-89dd-f888608d95b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dd49e02c-ea87-4ffc-89dd-f888608d95b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dd49e02c-ea87-4ffc-89dd-f888608d95b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.99:82] 280cee65-1b66-4973-a569-75122e0b745b
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:23.356 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '280cee65-1b66-4973-a569-75122e0b745b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
560
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '280cee65-1b66-4973-a569-75122e0b745b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:23.926 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/richtlijnstedelijkafvalwater2015\/wfs\/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:23.926 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:23.927 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:23.928 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:23.928 [print] Beheer PDOK
57
* print operateson
0
05:04:23.929 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e1#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:23.930 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:23.931 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:23.932 [print] "true";"true"
76
* eval db.writeln('"280cee65-1b66-4973-a569-75122e0b745b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"280cee65-1b66-4973-a569-75122e0b745b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"280cee65-1b66-4973-a569-75122e0b745b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.100:82] 108fec55-e467-4d04-ab35-fd0d7060e3e2
ms: 613
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:23.412 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '108fec55-e467-4d04-ab35-fd0d7060e3e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
598
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '108fec55-e467-4d04-ab35-fd0d7060e3e2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:24.019 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/richtlijnstedelijkafvalwater2015\/wms\/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:24.019 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:24.020 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:24.020 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:24.021 [print] Beheer PDOK
57
* print operateson
0
05:04:24.021 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e1#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:24.023 [print] "https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1";"http:\/\/data.europa.eu\/eli\/reg\/2009\/976"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:24.024 [print] "Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:24.024 [print] "true";"true"
76
* eval db.writeln('"108fec55-e467-4d04-ab35-fd0d7060e3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"108fec55-e467-4d04-ab35-fd0d7060e3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"108fec55-e467-4d04-ab35-fd0d7060e3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.101:82] 598c4109-21d2-4a6c-b083-9975a6736853
ms: 576
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:23.611 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '598c4109-21d2-4a6c-b083-9975a6736853'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '598c4109-21d2-4a6c-b083-9975a6736853'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:24.180 [print] https:\/\/geodata.nationaalgeoregister.nl\/weggeg\/wms?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:24.181 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:24.182 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:24.182 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:24.183 [print] Beheer PDOK
57
* print operateson
0
05:04:24.183 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=27df6b33-194c-46d6-ac94-257c306c91f2#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=abaf1e22-55aa-4a11-a855-7ac963e4a82b#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:24.185 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:24.186 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:24.187 [print] "true";"true"
76
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736853","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736853","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736853","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.102:82] 609d0c9e-173f-4f90-b020-c91ab3a0b6ef
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:23.767 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '609d0c9e-173f-4f90-b020-c91ab3a0b6ef'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
555
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '609d0c9e-173f-4f90-b020-c91ab3a0b6ef'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:24.332 [print] https:\/\/service.pdok.nl\/kadaster\/rdinfo\/wms\/v1_0?request=getcapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:24.333 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:24.334 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:24.334 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:24.335 [print] Beheer PDOK
57
* print operateson
0
05:04:24.335 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=29c17585-e702-463f-a5dc-99d34b17d333#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:24.336 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:24.337 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:24.338 [print] "true";"true"
76
* eval db.writeln('"609d0c9e-173f-4f90-b020-c91ab3a0b6ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"609d0c9e-173f-4f90-b020-c91ab3a0b6ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"609d0c9e-173f-4f90-b020-c91ab3a0b6ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.103:82] 448cc407-e405-4f07-8260-7489ec3b4f14
ms: 631
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:23.936 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '448cc407-e405-4f07-8260-7489ec3b4f14'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
613
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '448cc407-e405-4f07-8260-7489ec3b4f14'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:24.558 [print] https://service.pdok.nl/cbs/bestandbodemgebruik/2017/wms/v1_0?request=getCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:24.559 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:24.560 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:24.561 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:24.562 [print] Beheer PDOK
57
* print operateson
0
05:04:24.562 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9bf1ce1-5197-409e-b19e-340e50afafc4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:24.564 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:24.565 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:24.566 [print] "true";"true"
76
* eval db.writeln('"448cc407-e405-4f07-8260-7489ec3b4f14","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"448cc407-e405-4f07-8260-7489ec3b4f14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"448cc407-e405-4f07-8260-7489ec3b4f14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.104:82] 3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd
ms: 578
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:24.028 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:24.592 [print] https:\/\/service.pdok.nl\/kadaster\/rdinfo\/wfs\/v1_0?request=getcapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:24.594 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:24.595 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:24.595 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:24.596 [print] Beheer PDOK
57
* print operateson
0
05:04:24.597 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=29c17585-e702-463f-a5dc-99d34b17d333#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:04:24.599 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:24.600 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:24.601 [print] "true";"true"
76
* eval db.writeln('"3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
5
78
* eval db.writeln('"3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.105:82] b9fa42a0-41f9-4405-a593-d51721939222
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:24.191 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b9fa42a0-41f9-4405-a593-d51721939222'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b9fa42a0-41f9-4405-a593-d51721939222'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:24.757 [print] https://service.pdok.nl/cbs/bestandbodemgebruik/2017/wfs/v1_0?request=getCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:24.758 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:24.759 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:24.759 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:24.760 [print] Beheer PDOK
57
* print operateson
0
05:04:24.760 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9bf1ce1-5197-409e-b19e-340e50afafc4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:24.761 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:24.762 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:24.763 [print] "true";"true";"true"
76
* eval db.writeln('"b9fa42a0-41f9-4405-a593-d51721939222","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b9fa42a0-41f9-4405-a593-d51721939222","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b9fa42a0-41f9-4405-a593-d51721939222","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.106:82] 8129296b-b9c1-489f-990a-df4a879e12b2
ms: 552
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:24.341 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8129296b-b9c1-489f-990a-df4a879e12b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
536
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8129296b-b9c1-489f-990a-df4a879e12b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:24.886 [print] https://service.pdok.nl/cbs/hh/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:24.887 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:24.888 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:24.888 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:24.889 [print] Beheer PDOK
57
* print operateson
0
05:04:24.889 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=12bb57cd-73e0-41ba-a1e9-6d986b9109d3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:24.891 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:24.892 [print] "Deze service voldoet aan de specificaties voor spatial data services";"De service voldoet aan de requirements van de interoperable conformance class.";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:24.893 [print] "true";"true";"true"
76
* eval db.writeln('"8129296b-b9c1-489f-990a-df4a879e12b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8129296b-b9c1-489f-990a-df4a879e12b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8129296b-b9c1-489f-990a-df4a879e12b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.107:82] 7b8f44b5-6eae-4113-a835-84b8678c3dd5
ms: 584
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:24.570 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7b8f44b5-6eae-4113-a835-84b8678c3dd5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
567
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7b8f44b5-6eae-4113-a835-84b8678c3dd5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:25.146 [print] https://service.pdok.nl/rce/ps-ch/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:25.147 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:25.148 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:25.149 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:25.149 [print] Beheer PDOK
57
* print operateson
0
05:04:25.150 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=493ab81b-75f8-4205-b030-6b2fd9eb4295#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:25.152 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:25.153 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:25.154 [print] "true";"true"
76
* eval db.writeln('"7b8f44b5-6eae-4113-a835-84b8678c3dd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"7b8f44b5-6eae-4113-a835-84b8678c3dd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7b8f44b5-6eae-4113-a835-84b8678c3dd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.108:82] 101a2cc7-bb53-4a16-98f9-bab1f4745b01
ms: 569
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:24.609 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '101a2cc7-bb53-4a16-98f9-bab1f4745b01'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
551
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '101a2cc7-bb53-4a16-98f9-bab1f4745b01'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
3
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:25.171 [print] https:\/\/service.pdok.nl\/rce\/ps-ch\/wfs\/v1_0?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:25.172 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:25.173 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:25.173 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:25.174 [print] Beheer PDOK
57
* print operateson
0
05:04:25.174 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=493ab81b-75f8-4205-b030-6b2fd9eb4295#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:25.176 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:25.177 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:25.178 [print] "true";"true"
76
* eval db.writeln('"101a2cc7-bb53-4a16-98f9-bab1f4745b01","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"101a2cc7-bb53-4a16-98f9-bab1f4745b01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"101a2cc7-bb53-4a16-98f9-bab1f4745b01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.109:82] f0c6fbfe-a172-4223-8af3-58f6a28c881d
ms: 583
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:24.767 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
2
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f0c6fbfe-a172-4223-8af3-58f6a28c881d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
553
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f0c6fbfe-a172-4223-8af3-58f6a28c881d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:25.331 [print] https://service.pdok.nl/cbs/hh/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:25.332 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:25.333 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
7
05:04:25.339 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:04:25.341 [print] Beheer PDOK
57
* print operateson
1
05:04:25.341 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=12bb57cd-73e0-41ba-a1e9-6d986b9109d3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:25.343 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:25.344 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:25.346 [print] "true";"true"
76
* eval db.writeln('"f0c6fbfe-a172-4223-8af3-58f6a28c881d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f0c6fbfe-a172-4223-8af3-58f6a28c881d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f0c6fbfe-a172-4223-8af3-58f6a28c881d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
4
Scenario: [1.110:82] a2fdecfc-de33-4ce3-b935-4c9ac18c5a36
ms: 588
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:24.896 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a2fdecfc-de33-4ce3-b935-4c9ac18c5a36'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
570
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a2fdecfc-de33-4ce3-b935-4c9ac18c5a36'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:25.475 [print] https://geodata.nationaalgeoregister.nl/cbsvierkanten500mv2/wms/?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:25.476 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:04:25.477 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:25.478 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:25.479 [print] Beheer PDOK
57
* print operateson
0
05:04:25.480 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:04:25.481 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:25.483 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:25.484 [print] "true";"true"
76
* eval db.writeln('"a2fdecfc-de33-4ce3-b935-4c9ac18c5a36","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a2fdecfc-de33-4ce3-b935-4c9ac18c5a36","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a2fdecfc-de33-4ce3-b935-4c9ac18c5a36","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.111:82] a5437cb4-98ef-4c8e-a5ed-000e7a82b774
ms: 625
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:25.157 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a5437cb4-98ef-4c8e-a5ed-000e7a82b774'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
575
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a5437cb4-98ef-4c8e-a5ed-000e7a82b774'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
20
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:25.761 [print] https://geodata.nationaalgeoregister.nl/cbsvierkanten100mv2/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:25.762 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
6
52
* print protocol2
0
05:04:25.768 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
6
54
* print protocol
0
05:04:25.775 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
3
05:04:25.778 [print] Beheer PDOK
57
* print operateson
0
05:04:25.779 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:25.781 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:25.782 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:25.783 [print] "true";"true"
76
* eval db.writeln('"a5437cb4-98ef-4c8e-a5ed-000e7a82b774","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a5437cb4-98ef-4c8e-a5ed-000e7a82b774","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a5437cb4-98ef-4c8e-a5ed-000e7a82b774","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.112:82] abf1f9f0-1b85-40e8-86ec-86bee6003b4e
ms: 609
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:25.181 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'abf1f9f0-1b85-40e8-86ec-86bee6003b4e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
590
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'abf1f9f0-1b85-40e8-86ec-86bee6003b4e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
2
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:25.784 [print] https://geodata.nationaalgeoregister.nl/cbsvierkanten100mv2/wms/?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:25.785 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:04:25.786 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:25.787 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:25.787 [print] Beheer PDOK
57
* print operateson
0
05:04:25.788 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:25.789 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:25.790 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:25.791 [print] "true";"true"
76
* eval db.writeln('"abf1f9f0-1b85-40e8-86ec-86bee6003b4e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"abf1f9f0-1b85-40e8-86ec-86bee6003b4e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"abf1f9f0-1b85-40e8-86ec-86bee6003b4e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.113:82] f1e26638-3b45-4dd5-9ad0-f7d3654700f1
ms: 580
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:25.354 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f1e26638-3b45-4dd5-9ad0-f7d3654700f1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
560
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f1e26638-3b45-4dd5-9ad0-f7d3654700f1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
2
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:25.924 [print] https://geodata.nationaalgeoregister.nl/cbsvierkanten500mv2/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:25.926 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:25.927 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:25.927 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:25.929 [print] Beheer PDOK
57
* print operateson
0
05:04:25.929 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:25.931 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:25.932 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:25.933 [print] "true";"true"
76
* eval db.writeln('"f1e26638-3b45-4dd5-9ad0-f7d3654700f1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f1e26638-3b45-4dd5-9ad0-f7d3654700f1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f1e26638-3b45-4dd5-9ad0-f7d3654700f1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.114:82] 3ac5737f-55ed-455d-8350-44af11b67fc3
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:25.488 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3ac5737f-55ed-455d-8350-44af11b67fc3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
551
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3ac5737f-55ed-455d-8350-44af11b67fc3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:26.050 [print] https://service.pdok.nl/cbs/wijkenbuurten/2019/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:26.051 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:26.052 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:26.052 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:26.053 [print] Beheer PDOK
57
* print operateson
0
05:04:26.054 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5c37d29a-006d-4136-8989-adfc35a1d4a7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:26.056 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:26.058 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:26.059 [print] "true";"true"
76
* eval db.writeln('"3ac5737f-55ed-455d-8350-44af11b67fc3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3ac5737f-55ed-455d-8350-44af11b67fc3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3ac5737f-55ed-455d-8350-44af11b67fc3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.115:82] 3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d
ms: 608
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:25.794 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
10
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
583
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:26.396 [print] https://service.pdok.nl/cbs/wijkenbuurten/2020/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:26.397 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:26.397 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:26.398 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:26.398 [print] Beheer PDOK
57
* print operateson
0
05:04:26.398 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f1859b4d-93be-4fc8-9e91-0ecc2fa0f3b3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:26.400 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:26.401 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:26.401 [print] "true";"true"
76
* eval db.writeln('"3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.116:82] caeb52a3-cbaa-4e9b-a23e-d4dc0335b506
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:25.798 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
4
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'caeb52a3-cbaa-4e9b-a23e-d4dc0335b506'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
542
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'caeb52a3-cbaa-4e9b-a23e-d4dc0335b506'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:26.352 [print] https://service.pdok.nl/cbs/wijkenbuurten/2020/wfs/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:26.352 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:26.353 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:26.353 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:26.354 [print] Beheer PDOK
57
* print operateson
0
05:04:26.354 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f1859b4d-93be-4fc8-9e91-0ecc2fa0f3b3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:26.355 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:26.356 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:26.357 [print] "true";"true"
76
* eval db.writeln('"caeb52a3-cbaa-4e9b-a23e-d4dc0335b506","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"caeb52a3-cbaa-4e9b-a23e-d4dc0335b506","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"caeb52a3-cbaa-4e9b-a23e-d4dc0335b506","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.117:82] 2650d49b-7d9a-49b5-b748-a0372cd9b5cf
ms: 587
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:25.938 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2650d49b-7d9a-49b5-b748-a0372cd9b5cf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
569
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2650d49b-7d9a-49b5-b748-a0372cd9b5cf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:26.517 [print] https:\/\/service.pdok.nl\/hwh\/wsdiensteninspire\/wms\/v1_0?service=wms&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:26.518 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:26.519 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:26.520 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:26.521 [print] Beheer PDOK
57
* print operateson
0
05:04:26.521 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=bffcd5d9-02b4-4e7d-991f-a386611cad84#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:26.523 [print] https://inspire.ec.europa.eu/documents/technical-guidance-implementation-inspire-view-services-1
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:26.524 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"conform specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:26.525 [print] "true";"true"
76
* eval db.writeln('"2650d49b-7d9a-49b5-b748-a0372cd9b5cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2650d49b-7d9a-49b5-b748-a0372cd9b5cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2650d49b-7d9a-49b5-b748-a0372cd9b5cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.118:82] db1e010a-96f8-453e-b63c-9c27d6273157
ms: 556
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:26.073 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'db1e010a-96f8-453e-b63c-9c27d6273157'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
539
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'db1e010a-96f8-453e-b63c-9c27d6273157'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:26.623 [print] https:\/\/service.pdok.nl\/cbs\/bestandbodemgebruik\/2015\/wms\/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:26.624 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:26.624 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:26.625 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:26.625 [print] Beheer PDOK
57
* print operateson
0
05:04:26.626 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d3dd6d2-2d2b-4b5f-9e30-86e19ed77a56#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:26.627 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:26.628 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:26.629 [print] "true";"true"
76
* eval db.writeln('"db1e010a-96f8-453e-b63c-9c27d6273157","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"db1e010a-96f8-453e-b63c-9c27d6273157","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"db1e010a-96f8-453e-b63c-9c27d6273157","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.119:82] 25a99d92-ea8a-4163-82ab-3521c9b0c96b
ms: 606
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:26.360 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '25a99d92-ea8a-4163-82ab-3521c9b0c96b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
590
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '25a99d92-ea8a-4163-82ab-3521c9b0c96b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:26.960 [print] https:\/\/service.pdok.nl\/cbs\/bestandbodemgebruik\/2015\/wfs\/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:26.961 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:26.961 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:26.961 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:26.963 [print] Beheer PDOK
57
* print operateson
0
05:04:26.963 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d3dd6d2-2d2b-4b5f-9e30-86e19ed77a56#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:26.964 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:26.965 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:26.966 [print] "true";"true"
76
* eval db.writeln('"25a99d92-ea8a-4163-82ab-3521c9b0c96b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"25a99d92-ea8a-4163-82ab-3521c9b0c96b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"25a99d92-ea8a-4163-82ab-3521c9b0c96b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.120:82] 684ff4f6-1652-45a8-93f0-8e16d37b2a66
ms: 602
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:26.405 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '684ff4f6-1652-45a8-93f0-8e16d37b2a66'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
589
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '684ff4f6-1652-45a8-93f0-8e16d37b2a66'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:27.001 [print] https://geodata.nationaalgeoregister.nl/hwh/eenheden/wms/v1_0?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:27.002 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:27.002 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:27.002 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:27.003 [print] Beheer PDOK
57
* print operateson
0
05:04:27.003 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d4ec7e6-50ae-4c71-bd20-5b9211e2135f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:27.005 [print] https://inspire.ec.europa.eu/documents/technical-guidance-implementation-inspire-view-services-1
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:27.006 [print] "Waterschappen Administratieve eenheden INSPIRE";"Technische specificatie waarmee de service volledig conform is";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Deze service voldoet aan de specificaties voor spatial data services";"conform specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:27.006 [print] "true";"true";"true"
76
* eval db.writeln('"684ff4f6-1652-45a8-93f0-8e16d37b2a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"684ff4f6-1652-45a8-93f0-8e16d37b2a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"684ff4f6-1652-45a8-93f0-8e16d37b2a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.121:82] 67bcc21d-beda-449d-975c-00a4fa80f2b7
ms: 589
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:26.529 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '67bcc21d-beda-449d-975c-00a4fa80f2b7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
575
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '67bcc21d-beda-449d-975c-00a4fa80f2b7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:27.112 [print] https:\/\/service.pdok.nl\/hwh\/hydrografie\/wms\/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:27.113 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:27.113 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:27.114 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:27.114 [print] Beheer PDOK
57
* print operateson
0
05:04:27.114 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=07575774-57a1-4419-bab4-6c88fdeb02b2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:27.116 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:27.116 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:27.117 [print] "true";"true"
76
* eval db.writeln('"67bcc21d-beda-449d-975c-00a4fa80f2b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"67bcc21d-beda-449d-975c-00a4fa80f2b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"67bcc21d-beda-449d-975c-00a4fa80f2b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.122:82] 7ab53b91-9df1-4c39-ba0e-06ec80ce512b
ms: 612
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:26.633 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7ab53b91-9df1-4c39-ba0e-06ec80ce512b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
598
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7ab53b91-9df1-4c39-ba0e-06ec80ce512b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:27.238 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-cdda/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:27.239 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:27.240 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:27.240 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:27.241 [print] Beheer PDOK
57
* print operateson
0
05:04:27.241 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=3387ef8a-9237-453a-aa4e-585d1e193550#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:27.243 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:27.243 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:27.244 [print] "true";"true"
76
* eval db.writeln('"7ab53b91-9df1-4c39-ba0e-06ec80ce512b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7ab53b91-9df1-4c39-ba0e-06ec80ce512b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7ab53b91-9df1-4c39-ba0e-06ec80ce512b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.123:82] 63f622ef-46b3-411a-a2aa-045cabf1e3ac
ms: 548
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:26.970 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '63f622ef-46b3-411a-a2aa-045cabf1e3ac'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
533
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '63f622ef-46b3-411a-a2aa-045cabf1e3ac'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:27.511 [print] https://geodata.nationaalgeoregister.nl/provincies/ps/wfs/v1?SERVICE=WFS&REQUEST=GetCapabilities&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:27.512 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:27.512 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:27.512 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:27.513 [print] Beheer PDOK
57
* print operateson
0
05:04:27.513 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=49ab8bee-b467-486a-96ca-b950443c453a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:27.515 [print] https://eur-lex.europa.eu/eli/reg/2010/1089
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:27.516 [print] "OGC WFS 1.0.0";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Deze service voldoet aan de specificaties voor spatial data services";"harmonised";"De service voldoet aan de requirements van de harmonised conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:27.517 [print] "true";"true";"true"
76
* eval db.writeln('"63f622ef-46b3-411a-a2aa-045cabf1e3ac","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"63f622ef-46b3-411a-a2aa-045cabf1e3ac","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"63f622ef-46b3-411a-a2aa-045cabf1e3ac","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.124:82] 25c69c01-8dfa-406f-bbcb-24feba25dcc6
ms: 669
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:27.010 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '25c69c01-8dfa-406f-bbcb-24feba25dcc6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
650
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '25c69c01-8dfa-406f-bbcb-24feba25dcc6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:27.668 [print] https://geodata.nationaalgeoregister.nl/provincies/ps/wms/v1?SERVICE=WMS&REQUEST=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:27.669 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
1
05:04:27.671 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:27.672 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:04:27.673 [print] Beheer PDOK
57
* print operateson
1
05:04:27.674 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=49ab8bee-b467-486a-96ca-b950443c453a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:27.676 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:27.677 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:27.678 [print] "true";"true"
76
* eval db.writeln('"25c69c01-8dfa-406f-bbcb-24feba25dcc6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"25c69c01-8dfa-406f-bbcb-24feba25dcc6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"25c69c01-8dfa-406f-bbcb-24feba25dcc6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.125:82] 823c5f01-5d11-481b-aa5f-e191d129365f
ms: 610
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:27.121 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '823c5f01-5d11-481b-aa5f-e191d129365f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
592
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '823c5f01-5d11-481b-aa5f-e191d129365f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:27.721 [print] https://service.pdok.nl/kadaster/gn/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:27.722 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:27.723 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:27.723 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:27.724 [print] Beheer PDOK
57
* print operateson
1
05:04:27.725 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:27.727 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:27.728 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:27.729 [print] "true";"true"
76
* eval db.writeln('"823c5f01-5d11-481b-aa5f-e191d129365f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"823c5f01-5d11-481b-aa5f-e191d129365f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
2
78
* eval db.writeln('"823c5f01-5d11-481b-aa5f-e191d129365f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.126:82] dae8f9e3-99af-4d21-9feb-29f2a1693077
ms: 551
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:27.251 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dae8f9e3-99af-4d21-9feb-29f2a1693077'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
538
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dae8f9e3-99af-4d21-9feb-29f2a1693077'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:27.796 [print] https://service.pdok.nl/kadaster/tn/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:27.797 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:27.798 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:27.798 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:27.799 [print] Beheer PDOK
57
* print operateson
0
05:04:27.799 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5951efa2-1ff3-4763-a966-a2f5497679ee#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=6c06740d-058f-4a12-bb3f-bf68efd03d09#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3a7dd0a6-d130-4c4c-b0ba-24365cf036e2#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3a7dd0a6-d130-4c4c-b0ba-24365cf036e2#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5951efa2-1ff3-4763-a966-a2f5497679ee#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8f45b8ef-0ce8-463a-9059-5efdcecb785c#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:27.800 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:27.801 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:27.802 [print] "true";"true"
76
* eval db.writeln('"dae8f9e3-99af-4d21-9feb-29f2a1693077","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dae8f9e3-99af-4d21-9feb-29f2a1693077","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"dae8f9e3-99af-4d21-9feb-29f2a1693077","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.127:82] 589a9223-7588-4cd7-93aa-5373a12d8cea
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:27.521 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '589a9223-7588-4cd7-93aa-5373a12d8cea'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
544
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '589a9223-7588-4cd7-93aa-5373a12d8cea'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:28.074 [print] https://service.pdok.nl/kadaster/hy/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:28.075 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:28.076 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:28.076 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:28.077 [print] Beheer PDOK
57
* print operateson
0
05:04:28.077 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:28.079 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:28.080 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:28.081 [print] "true";"true"
76
* eval db.writeln('"589a9223-7588-4cd7-93aa-5373a12d8cea","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"589a9223-7588-4cd7-93aa-5373a12d8cea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"589a9223-7588-4cd7-93aa-5373a12d8cea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.128:82] 5523cfd7-a72c-409e-a0c7-89b858aafa64
ms: 594
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:27.682 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5523cfd7-a72c-409e-a0c7-89b858aafa64'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
577
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5523cfd7-a72c-409e-a0c7-89b858aafa64'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:28.268 [print] https://service.pdok.nl/bzk/bro-environmental-monitoring-facilities/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:28.269 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:28.270 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:28.270 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:28.271 [print] Beheer PDOK
57
* print operateson
0
05:04:28.271 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:28.273 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:28.274 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:28.275 [print] "true";"true"
76
* eval db.writeln('"5523cfd7-a72c-409e-a0c7-89b858aafa64","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5523cfd7-a72c-409e-a0c7-89b858aafa64","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5523cfd7-a72c-409e-a0c7-89b858aafa64","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.129:82] 26e2e9f4-be88-4c8c-bdef-94edfa93bde9
ms: 623
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:27.734 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '26e2e9f4-be88-4c8c-bdef-94edfa93bde9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
607
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '26e2e9f4-be88-4c8c-bdef-94edfa93bde9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:28.350 [print] https://service.pdok.nl/bzk/bro-hydrogeology/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:28.351 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:28.352 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:28.352 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:28.353 [print] Beheer PDOK
57
* print operateson
0
05:04:28.353 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:28.355 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:28.356 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:28.357 [print] "true";"true"
76
* eval db.writeln('"26e2e9f4-be88-4c8c-bdef-94edfa93bde9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"26e2e9f4-be88-4c8c-bdef-94edfa93bde9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"26e2e9f4-be88-4c8c-bdef-94edfa93bde9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.130:82] 757a7c50-540d-4105-9135-73f09f700743
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:27.805 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
20
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '757a7c50-540d-4105-9135-73f09f700743'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
538
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '757a7c50-540d-4105-9135-73f09f700743'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:28.370 [print] https://service.pdok.nl/bzk/bro-grondwaterspiegeldiepte/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
05:04:28.372 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:28.373 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:28.373 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:28.374 [print] Beheer PDOK
57
* print operateson
0
05:04:28.374 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b756dabe-a331-42cd-b45e-f61828ee4534#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:28.376 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:28.377 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:28.378 [print] "true";"true"
76
* eval db.writeln('"757a7c50-540d-4105-9135-73f09f700743","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"757a7c50-540d-4105-9135-73f09f700743","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"757a7c50-540d-4105-9135-73f09f700743","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.131:82] a2724dae-ebad-4a07-9405-49bddfde3368
ms: 603
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:28.085 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
5
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a2724dae-ebad-4a07-9405-49bddfde3368'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
581
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a2724dae-ebad-4a07-9405-49bddfde3368'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:28.680 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/verkeersscheidingsstelsel\/wfs\/v2_0?service=WFS&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:28.681 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:28.682 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:28.682 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:28.684 [print] Beheer PDOK
57
* print operateson
0
05:04:28.684 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:28.686 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:28.687 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:28.688 [print] "true";"true"
76
* eval db.writeln('"a2724dae-ebad-4a07-9405-49bddfde3368","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a2724dae-ebad-4a07-9405-49bddfde3368","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a2724dae-ebad-4a07-9405-49bddfde3368","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.132:82] 3e65fa1b-9bb1-41bd-9760-76962751b839
ms: 578
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:28.280 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3e65fa1b-9bb1-41bd-9760-76962751b839'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3e65fa1b-9bb1-41bd-9760-76962751b839'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:28.851 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/verkeersscheidingsstelsel\/wms\/v2_0?service=WMS&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:28.852 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:28.853 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:28.853 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:28.854 [print] Beheer PDOK
57
* print operateson
0
05:04:28.854 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:28.855 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:28.856 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:28.857 [print] "true";"true"
76
* eval db.writeln('"3e65fa1b-9bb1-41bd-9760-76962751b839","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3e65fa1b-9bb1-41bd-9760-76962751b839","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3e65fa1b-9bb1-41bd-9760-76962751b839","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.133:82] e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5
ms: 575
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:28.361 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
8
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:28.931 [print] https://service.pdok.nl/cbs/wb2021/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:28.932 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:28.932 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:28.932 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:28.933 [print] Beheer PDOK
57
* print operateson
0
05:04:28.933 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:28.934 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:28.935 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:28.936 [print] "true";"true"
76
* eval db.writeln('"e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.134:82] 60dc9632-50c8-40b1-ac63-cd91b85352d2
ms: 614
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:28.381 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '60dc9632-50c8-40b1-ac63-cd91b85352d2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
598
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '60dc9632-50c8-40b1-ac63-cd91b85352d2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:28.987 [print] https://service.pdok.nl/cbs/wb2021/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:28.988 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
3
52
* print protocol2
0
05:04:28.991 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:28.991 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:28.992 [print] Beheer PDOK
57
* print operateson
0
05:04:28.992 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:28.993 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:28.994 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:28.995 [print] "true";"true";"true"
76
* eval db.writeln('"60dc9632-50c8-40b1-ac63-cd91b85352d2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"60dc9632-50c8-40b1-ac63-cd91b85352d2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"60dc9632-50c8-40b1-ac63-cd91b85352d2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.135:82] 008d85d1-460d-46f6-9af4-98afdedbc4dc
ms: 538
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:28.691 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '008d85d1-460d-46f6-9af4-98afdedbc4dc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
524
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '008d85d1-460d-46f6-9af4-98afdedbc4dc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:29.223 [print] https://service.pdok.nl/cbs/pd/wfs/v1_0?service=WFS&request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:29.223 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:29.225 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:29.225 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:29.226 [print] Beheer PDOK
57
* print operateson
0
05:04:29.226 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76541ebb-a554-4540-a017-399d4bb4a860#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:29.227 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs ."
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:29.228 [print] "Deze service voldoet aan specificaties voor spatial data services";"De service voldoet aan de requirements van de interoperable conformance class.";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:29.229 [print] "true";"true";"true"
76
* eval db.writeln('"008d85d1-460d-46f6-9af4-98afdedbc4dc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"008d85d1-460d-46f6-9af4-98afdedbc4dc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"008d85d1-460d-46f6-9af4-98afdedbc4dc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.136:82] 171b28f6-7ee7-46f9-b3b3-06d0baaa33db
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:28.860 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '171b28f6-7ee7-46f9-b3b3-06d0baaa33db'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '171b28f6-7ee7-46f9-b3b3-06d0baaa33db'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:29.425 [print] https:\/\/service.pdok.nl\/cbs\/pd\/wms\/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:29.426 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:29.426 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:29.426 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:29.427 [print] Beheer PDOK
57
* print operateson
0
05:04:29.427 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76541ebb-a554-4540-a017-399d4bb4a860#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:29.429 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:29.429 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:29.430 [print] "true";"true"
76
* eval db.writeln('"171b28f6-7ee7-46f9-b3b3-06d0baaa33db","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"171b28f6-7ee7-46f9-b3b3-06d0baaa33db","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"171b28f6-7ee7-46f9-b3b3-06d0baaa33db","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.137:82] f57bdee7-4027-4aa2-8312-4051b854be3c
ms: 646
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:28.941 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f57bdee7-4027-4aa2-8312-4051b854be3c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
633
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f57bdee7-4027-4aa2-8312-4051b854be3c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:29.582 [print] https://service.pdok.nl/rvo/schelpdierpercelen/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:29.583 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:29.583 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:29.584 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:29.584 [print] Beheer PDOK
57
* print operateson
0
05:04:29.584 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b4e95a-12d7-4c74-933c-cb267cfe0bcf#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:29.586 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:29.586 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:29.587 [print] "true";"true"
76
* eval db.writeln('"f57bdee7-4027-4aa2-8312-4051b854be3c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f57bdee7-4027-4aa2-8312-4051b854be3c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f57bdee7-4027-4aa2-8312-4051b854be3c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.138:82] 972edbaa-f860-4c48-b449-4f238a263472
ms: 612
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:28.998 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '972edbaa-f860-4c48-b449-4f238a263472'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
599
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '972edbaa-f860-4c48-b449-4f238a263472'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:29.605 [print] https://geodata.nationaalgeoregister.nl/restwarmte/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:29.606 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:29.606 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:29.607 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:29.607 [print] Beheer PDOK
57
* print operateson
0
05:04:29.607 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d6b85d84-cdb9-4a6e-b799-cf8826e22a94#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:29.609 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:29.610 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:29.611 [print] "true";"true"
76
* eval db.writeln('"972edbaa-f860-4c48-b449-4f238a263472","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"972edbaa-f860-4c48-b449-4f238a263472","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"972edbaa-f860-4c48-b449-4f238a263472","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.139:82] 3dc373ae-fcf6-49c9-b315-9a2178bffe4a
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:29.232 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3dc373ae-fcf6-49c9-b315-9a2178bffe4a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3dc373ae-fcf6-49c9-b315-9a2178bffe4a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:29.801 [print] https://geodata.nationaalgeoregister.nl/restwarmte/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:29.802 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:29.803 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:29.803 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:29.804 [print] Beheer PDOK
57
* print operateson
0
05:04:29.804 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d6b85d84-cdb9-4a6e-b799-cf8826e22a94#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:29.806 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:29.808 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:29.809 [print] "true";"true"
76
* eval db.writeln('"3dc373ae-fcf6-49c9-b315-9a2178bffe4a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3dc373ae-fcf6-49c9-b315-9a2178bffe4a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3dc373ae-fcf6-49c9-b315-9a2178bffe4a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.140:82] d9cc67ba-5491-4640-86ac-b8d392250270
ms: 582
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:29.434 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd9cc67ba-5491-4640-86ac-b8d392250270'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
568
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd9cc67ba-5491-4640-86ac-b8d392250270'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:30.010 [print] https://service.pdok.nl/bzk/bro-bodemkaart/wms/v1_0?request=getCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:30.010 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:30.011 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:30.011 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:30.012 [print] Beheer PDOK
57
* print operateson
0
05:04:30.012 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ed960299-a147-4c1a-bc57-41ff83a2264f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ed960299-a147-4c1a-bc57-41ff83a2264f#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:30.013 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:30.014 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:30.015 [print] "true";"true"
76
* eval db.writeln('"d9cc67ba-5491-4640-86ac-b8d392250270","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d9cc67ba-5491-4640-86ac-b8d392250270","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d9cc67ba-5491-4640-86ac-b8d392250270","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.141:82] 4041f923-6b77-4816-bf46-437e85416c31
ms: 607
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:29.590 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4041f923-6b77-4816-bf46-437e85416c31'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
590
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4041f923-6b77-4816-bf46-437e85416c31'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:30.190 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/kaderrichtlijnmarienestrategie2018\/wms\/v1_0?SERVICE=WMS&REQUEST=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:30.191 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:30.192 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:30.192 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:30.193 [print] Beheer PDOK
57
* print operateson
0
05:04:30.193 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krm-a905-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krm-a905-9d8e-4758-83fa-28b057f185e4#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:30.195 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:30.196 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:30.197 [print] "true";"true"
76
* eval db.writeln('"4041f923-6b77-4816-bf46-437e85416c31","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4041f923-6b77-4816-bf46-437e85416c31","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4041f923-6b77-4816-bf46-437e85416c31","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.142:82] 03c48a93-1e31-4c69-92c6-9a7efecf67a9
ms: 637
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:29.614 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '03c48a93-1e31-4c69-92c6-9a7efecf67a9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
620
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '03c48a93-1e31-4c69-92c6-9a7efecf67a9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:30.243 [print] https://geodata.nationaalgeoregister.nl/digitaaltopografischbestand/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:30.244 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:30.245 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:30.245 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:30.246 [print] Beheer PDOK
57
* print operateson
0
05:04:30.246 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=c4b137b8-2317-42c2-aced-204c4216d68d&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=c4bed072-0fda-47b8-96fa-457a938b88fc&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=3229e4d7-4bcd-4b94-819d-8e62de69ce2e&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:30.248 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:30.249 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:30.250 [print] "true";"true"
76
* eval db.writeln('"03c48a93-1e31-4c69-92c6-9a7efecf67a9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"03c48a93-1e31-4c69-92c6-9a7efecf67a9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"03c48a93-1e31-4c69-92c6-9a7efecf67a9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.143:82] f917ffa9-1531-48ea-867e-0d413d85b05a
ms: 603
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:29.812 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f917ffa9-1531-48ea-867e-0d413d85b05a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
586
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f917ffa9-1531-48ea-867e-0d413d85b05a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:30.409 [print] https://geodata.nationaalgeoregister.nl/digitaaltopografischbestand/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:30.410 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:30.411 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:30.411 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:30.412 [print] Beheer PDOK
57
* print operateson
0
05:04:30.412 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=c4b137b8-2317-42c2-aced-204c4216d68d&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=c4bed072-0fda-47b8-96fa-457a938b88fc&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=3229e4d7-4bcd-4b94-819d-8e62de69ce2e&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:30.414 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:30.415 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:30.416 [print] "true";"true"
76
* eval db.writeln('"f917ffa9-1531-48ea-867e-0d413d85b05a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f917ffa9-1531-48ea-867e-0d413d85b05a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f917ffa9-1531-48ea-867e-0d413d85b05a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.144:82] 94f241c2-43a2-42c3-8e9e-71976605aa0e
ms: 599
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:30.018 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '94f241c2-43a2-42c3-8e9e-71976605aa0e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
575
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '94f241c2-43a2-42c3-8e9e-71976605aa0e'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:30.606 [print] https://service.pdok.nl/brt/top10nl/wms/v1_0?service=wms&request=getCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:30.607 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:30.608 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:30.609 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:30.610 [print] Beheer PDOK
57
* print operateson
0
05:04:30.610 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=29d5310f-dd0d-45ba-abad-b4ffc6b8785f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=af0c582f-9e6b-46e6-865a-fc3a2d5289b9#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=81ff84ec-42a4-4481-840b-12713bbb5d38#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4b282988-cb91-4bbc-b147-f653014917cb#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3eebf700-5abf-42e4-826c-03cfb497e366#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9d9f1738-aced-47c9-aaa0-c62474a2dcfb#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:30.613 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:30.615 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:30.616 [print] "true";"true"
76
* eval db.writeln('"94f241c2-43a2-42c3-8e9e-71976605aa0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"94f241c2-43a2-42c3-8e9e-71976605aa0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"94f241c2-43a2-42c3-8e9e-71976605aa0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.145:82] 37e05521-c323-4dbe-aba4-de1178ba44a5
ms: 1046
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:30.201 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '37e05521-c323-4dbe-aba4-de1178ba44a5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
714
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '37e05521-c323-4dbe-aba4-de1178ba44a5'
19
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
55
34
* def title = get response //citation/CI_Citation/title/CharacterString
37
35
* def email = get response //electronicMailAddress/CharacterString
21
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
17
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
8
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
5
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
5
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
7
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
14
05:04:31.107 [print] https:\/\/geodata.nationaalgeoregister.nl\/vogelrichtlijnverspreidingsoorten\/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
16
50
* print protocol1
2
05:04:31.125 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
6
52
* print protocol2
10
05:04:31.142 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:31.142 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
8
56
* print organisationpath
8
05:04:31.158 [print] Beheer PDOK
57
* print operateson
1
05:04:31.159 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=fcefa13c-44e2-4953-b6d6-1ddceebc57fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
8
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
52
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:04:31.220 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
14
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:31.234 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
12
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
05:04:31.247 [print] "true";"true"
76
* eval db.writeln('"37e05521-c323-4dbe-aba4-de1178ba44a5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"37e05521-c323-4dbe-aba4-de1178ba44a5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"37e05521-c323-4dbe-aba4-de1178ba44a5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.146:82] e69bb2e9-eff4-4fb3-86a6-057cf628e761
ms: 800
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:30.253 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e69bb2e9-eff4-4fb3-86a6-057cf628e761'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
661
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e69bb2e9-eff4-4fb3-86a6-057cf628e761'
6
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
10
34
* def title = get response //citation/CI_Citation/title/CharacterString
10
35
* def email = get response //electronicMailAddress/CharacterString
6
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
11
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
7
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
11
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
4
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
6
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:30.991 [print] https:\/\/geodata.nationaalgeoregister.nl\/vogelrichtlijnverspreidingsoorten\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
9
50
* print protocol1
1
05:04:31.001 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
5
52
* print protocol2
1
05:04:31.007 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:31.007 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
12
56
* print organisationpath
0
05:04:31.019 [print] Beheer PDOK
57
* print operateson
0
05:04:31.020 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=fcefa13c-44e2-4953-b6d6-1ddceebc57fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
7
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
10
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:04:31.037 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
6
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:31.045 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
8
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
05:04:31.053 [print] "true";"true"
76
* eval db.writeln('"e69bb2e9-eff4-4fb3-86a6-057cf628e761","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e69bb2e9-eff4-4fb3-86a6-057cf628e761","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e69bb2e9-eff4-4fb3-86a6-057cf628e761","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.147:82] 76854ff3-a853-4405-b9fd-acef66460376
ms: 952
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:30.419 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '76854ff3-a853-4405-b9fd-acef66460376'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
693
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '76854ff3-a853-4405-b9fd-acef66460376'
20
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
17
34
* def title = get response //citation/CI_Citation/title/CharacterString
16
35
* def email = get response //electronicMailAddress/CharacterString
32
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
16
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
22
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
17
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
12
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
6
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:31.274 [print] https:\/\/geodata.nationaalgeoregister.nl\/vogelrichtlijnverspreidingsgebiedsoorten\/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
6
50
* print protocol1
1
05:04:31.280 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
6
52
* print protocol2
1
05:04:31.287 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:31.287 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
8
56
* print organisationpath
1
05:04:31.296 [print] Beheer PDOK
57
* print operateson
1
05:04:31.296 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=cbeaebc3-815a-48af-a978-0e16892865fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
44
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
12
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:04:31.353 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
9
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:31.363 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
7
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
05:04:31.370 [print] "true";"true"
76
* eval db.writeln('"76854ff3-a853-4405-b9fd-acef66460376","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"76854ff3-a853-4405-b9fd-acef66460376","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"76854ff3-a853-4405-b9fd-acef66460376","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.148:82] e6c18185-719e-4729-8131-798dd9a69e8d
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:30.620 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e6c18185-719e-4729-8131-798dd9a69e8d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e6c18185-719e-4729-8131-798dd9a69e8d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
10
45
* print connectUrl
1
05:04:31.187 [print] https://service.pdok.nl/provincies/zwemwater-provinciaal-rijkswateren/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:31.188 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:31.189 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:31.189 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:31.190 [print] Beheer PDOK
57
* print operateson
0
05:04:31.191 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:31.193 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:31.195 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:31.196 [print] "true";"true"
76
* eval db.writeln('"e6c18185-719e-4729-8131-798dd9a69e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e6c18185-719e-4729-8131-798dd9a69e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e6c18185-719e-4729-8131-798dd9a69e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.149:82] 8e7686c3-f75e-411f-866e-6985267b916b
ms: 784
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:31.057 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8e7686c3-f75e-411f-866e-6985267b916b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
684
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8e7686c3-f75e-411f-866e-6985267b916b'
4
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
5
34
* def title = get response //citation/CI_Citation/title/CharacterString
5
35
* def email = get response //electronicMailAddress/CharacterString
5
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
5
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
5
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
3
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
3
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
6
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:31.784 [print] https:\/\/geodata.nationaalgeoregister.nl\/vogelrichtlijnverspreidingsgebiedsoorten\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
4
50
* print protocol1
0
05:04:31.789 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
10
52
* print protocol2
10
05:04:31.809 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:31.809 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
9
56
* print organisationpath
2
05:04:31.820 [print] Beheer PDOK
57
* print operateson
0
05:04:31.820 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=cbeaebc3-815a-48af-a978-0e16892865fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
5
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
5
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:04:31.831 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
5
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:31.836 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
5
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:31.841 [print] "true";"true"
76
* eval db.writeln('"8e7686c3-f75e-411f-866e-6985267b916b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8e7686c3-f75e-411f-866e-6985267b916b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8e7686c3-f75e-411f-866e-6985267b916b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.150:82] 4805aac3-9a8d-4fcd-851b-88c7b3d342e2
ms: 601
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:31.214 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
3
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4805aac3-9a8d-4fcd-851b-88c7b3d342e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
572
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4805aac3-9a8d-4fcd-851b-88c7b3d342e2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
3
45
* print connectUrl
5
05:04:31.804 [print] https://service.pdok.nl/kadaster/sr/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:31.805 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:31.806 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:31.806 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:31.807 [print] Beheer PDOK
57
* print operateson
0
05:04:31.807 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:31.808 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
5
05:04:31.814 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:31.815 [print] "true";"true"
76
* eval db.writeln('"4805aac3-9a8d-4fcd-851b-88c7b3d342e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4805aac3-9a8d-4fcd-851b-88c7b3d342e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4805aac3-9a8d-4fcd-851b-88c7b3d342e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.151:82] 3bfab77c-1663-4334-b7cb-b972de6096b1
ms: 614
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:31.260 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
2
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3bfab77c-1663-4334-b7cb-b972de6096b1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
599
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3bfab77c-1663-4334-b7cb-b972de6096b1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:31.869 [print] https://service.pdok.nl/provincies/geluidzones-rondom-vliegvelden/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:31.870 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:31.870 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:31.871 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:31.871 [print] Beheer PDOK
57
* print operateson
0
05:04:31.872 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=41023936-009d-48ec-a90d-c966895463c1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:31.873 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:31.874 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:31.875 [print] "true";"true"
76
* eval db.writeln('"3bfab77c-1663-4334-b7cb-b972de6096b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3bfab77c-1663-4334-b7cb-b972de6096b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3bfab77c-1663-4334-b7cb-b972de6096b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.152:82] 627b50bf-2e33-4beb-a314-ff8c0fe8912e
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:31.382 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '627b50bf-2e33-4beb-a314-ff8c0fe8912e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '627b50bf-2e33-4beb-a314-ff8c0fe8912e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:31.947 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/tn-w\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:31.948 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:31.949 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:31.949 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:31.950 [print] Beheer PDOK
57
* print operateson
0
05:04:31.950 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-2c7040b-c448-451b-bf15-f2416ecaadd1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:31.952 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:31.953 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:31.954 [print] "true";"true"
76
* eval db.writeln('"627b50bf-2e33-4beb-a314-ff8c0fe8912e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"627b50bf-2e33-4beb-a314-ff8c0fe8912e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"627b50bf-2e33-4beb-a314-ff8c0fe8912e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.153:82] a84f9836-9111-4e45-a311-3dab39019e15
ms: 621
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:31.819 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
10
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a84f9836-9111-4e45-a311-3dab39019e15'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
594
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a84f9836-9111-4e45-a311-3dab39019e15'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:32.433 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/tn-w\/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:32.434 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:32.434 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:32.434 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:32.435 [print] Beheer PDOK
57
* print operateson
0
05:04:32.436 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-2c7040b-c448-451b-bf15-f2416ecaadd1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:32.437 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:32.438 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:32.439 [print] "true";"true"
76
* eval db.writeln('"a84f9836-9111-4e45-a311-3dab39019e15","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a84f9836-9111-4e45-a311-3dab39019e15","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a84f9836-9111-4e45-a311-3dab39019e15","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.154:82] 180b6682-5d6f-429d-abb7-32f7d6253787
ms: 607
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:31.845 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '180b6682-5d6f-429d-abb7-32f7d6253787'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
591
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '180b6682-5d6f-429d-abb7-32f7d6253787'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
3
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:32.446 [print] https://geodata.nationaalgeoregister.nl/windkaart/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:32.446 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:32.447 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:32.447 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:32.448 [print] Beheer PDOK
57
* print operateson
0
05:04:32.448 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=d845cef6-0e23-4212-a951-b69763e39ef0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:32.450 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:32.451 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:32.452 [print] "true";"true"
76
* eval db.writeln('"180b6682-5d6f-429d-abb7-32f7d6253787","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"180b6682-5d6f-429d-abb7-32f7d6253787","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"180b6682-5d6f-429d-abb7-32f7d6253787","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.155:82] d981070b-888c-42d5-85ff-1e383f3d7fce
ms: 682
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:31.878 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd981070b-888c-42d5-85ff-1e383f3d7fce'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
667
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd981070b-888c-42d5-85ff-1e383f3d7fce'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:32.553 [print] https://geodata.nationaalgeoregister.nl/windkaart/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:32.554 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:32.555 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:32.555 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:32.556 [print] Beheer PDOK
57
* print operateson
0
05:04:32.556 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d845cef6-0e23-4212-a951-b69763e39ef0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:32.557 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:32.558 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:32.559 [print] "true";"true"
76
* eval db.writeln('"d981070b-888c-42d5-85ff-1e383f3d7fce","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d981070b-888c-42d5-85ff-1e383f3d7fce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d981070b-888c-42d5-85ff-1e383f3d7fce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.156:82] 4fb15e0d-d88f-40f1-b407-3d3edcf7e184
ms: 639
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:31.957 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4fb15e0d-d88f-40f1-b407-3d3edcf7e184'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
626
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4fb15e0d-d88f-40f1-b407-3d3edcf7e184'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:32.590 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/tn-ro\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:32.591 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:32.592 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:32.592 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:32.593 [print] Beheer PDOK
57
* print operateson
0
05:04:32.593 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=eu-cb527d-f6db-4835-b0cd-deb245241254#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:32.594 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:32.595 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:32.596 [print] "true";"true"
76
* eval db.writeln('"4fb15e0d-d88f-40f1-b407-3d3edcf7e184","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4fb15e0d-d88f-40f1-b407-3d3edcf7e184","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4fb15e0d-d88f-40f1-b407-3d3edcf7e184","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.157:82] 8abcd2d1-3beb-43e5-a572-2b2da05a0a98
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:32.442 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8abcd2d1-3beb-43e5-a572-2b2da05a0a98'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
545
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8abcd2d1-3beb-43e5-a572-2b2da05a0a98'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:32.996 [print] https:\/\/geodata.nationaalgeoregister.nl\/nhi\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:32.998 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:32.999 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:32.999 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:33.000 [print] Beheer PDOK
57
* print operateson
0
05:04:33.000 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=710c381c-ab2d-45d5-a45d-af2eba811e5f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:33.002 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:33.003 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:33.004 [print] "true";"true"
76
* eval db.writeln('"8abcd2d1-3beb-43e5-a572-2b2da05a0a98","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8abcd2d1-3beb-43e5-a572-2b2da05a0a98","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8abcd2d1-3beb-43e5-a572-2b2da05a0a98","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.158:82] b023459a-9f0e-4d53-8059-a794119abbed
ms: 579
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:32.455 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b023459a-9f0e-4d53-8059-a794119abbed'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
564
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b023459a-9f0e-4d53-8059-a794119abbed'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:33.027 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-cdda/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:33.028 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:33.028 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:33.029 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:33.030 [print] Beheer PDOK
57
* print operateson
0
05:04:33.030 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3387ef8a-9237-453a-aa4e-585d1e193550#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:33.032 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:33.033 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:33.034 [print] "true";"true"
76
* eval db.writeln('"b023459a-9f0e-4d53-8059-a794119abbed","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b023459a-9f0e-4d53-8059-a794119abbed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b023459a-9f0e-4d53-8059-a794119abbed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.159:82] 578f993f-4d0b-4c4a-a08b-dfa9e1d1376e
ms: 602
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:32.562 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '578f993f-4d0b-4c4a-a08b-dfa9e1d1376e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
585
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '578f993f-4d0b-4c4a-a08b-dfa9e1d1376e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:33.156 [print] https:\/\/geodata.nationaalgeoregister.nl\/nhi\/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:33.157 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
0
05:04:33.159 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:33.159 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:33.160 [print] Beheer PDOK
57
* print operateson
0
05:04:33.160 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=710c381c-ab2d-45d5-a45d-af2eba811e5f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:33.162 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:33.163 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:33.164 [print] "true";"true"
76
* eval db.writeln('"578f993f-4d0b-4c4a-a08b-dfa9e1d1376e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"578f993f-4d0b-4c4a-a08b-dfa9e1d1376e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"578f993f-4d0b-4c4a-a08b-dfa9e1d1376e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.160:82] 4074b3c3-ca85-45ad-bc0d-b5fca8540c0a
ms: 612
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:32.599 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4074b3c3-ca85-45ad-bc0d-b5fca8540c0a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
596
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4074b3c3-ca85-45ad-bc0d-b5fca8540c0a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:33.203 [print] https://geodata.nationaalgeoregister.nl/vin/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:33.204 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:33.204 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:33.205 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:04:33.207 [print] Beheer PDOK
57
* print operateson
0
05:04:33.207 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=831f7bd7-c2ae-4336-bd2f-47ab20d7cdb7
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:33.209 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:33.210 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:33.211 [print] "true";"true"
76
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540c0a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540c0a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540c0a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.161:82] b4ae5b2c-f557-4a30-bbf2-c2681a544f32
ms: 588
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:33.008 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b4ae5b2c-f557-4a30-bbf2-c2681a544f32'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b4ae5b2c-f557-4a30-bbf2-c2681a544f32'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
3
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:33.582 [print] https://geodata.nationaalgeoregister.nl/vin/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:33.583 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:33.584 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:33.585 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:04:33.586 [print] Beheer PDOK
57
* print operateson
0
05:04:33.587 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=831f7bd7-c2ae-4336-bd2f-47ab20d7cdb7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:33.589 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:33.590 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:33.592 [print] "true";"true"
76
* eval db.writeln('"b4ae5b2c-f557-4a30-bbf2-c2681a544f32","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b4ae5b2c-f557-4a30-bbf2-c2681a544f32","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
2
78
* eval db.writeln('"b4ae5b2c-f557-4a30-bbf2-c2681a544f32","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
3
Scenario: [1.162:82] a57c1e86-becb-4e3f-b0ad-6d02cea5583d
ms: 553
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:33.037 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a57c1e86-becb-4e3f-b0ad-6d02cea5583d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
537
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a57c1e86-becb-4e3f-b0ad-6d02cea5583d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:33.582 [print] https://service.pdok.nl/provincies/zwemwaterkwaliteit-provinciaal-rijkswateren/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:33.584 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:33.585 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:33.585 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:33.586 [print] Beheer PDOK
57
* print operateson
0
05:04:33.586 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=df5ee213-e1bd-433b-80f7-4ea20f493ca8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:33.588 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:33.589 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:33.590 [print] "true";"true"
76
* eval db.writeln('"a57c1e86-becb-4e3f-b0ad-6d02cea5583d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"a57c1e86-becb-4e3f-b0ad-6d02cea5583d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a57c1e86-becb-4e3f-b0ad-6d02cea5583d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.163:82] cea38797-ea4b-4969-b979-8d25eb543a6c
ms: 585
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:33.169 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cea38797-ea4b-4969-b979-8d25eb543a6c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
570
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cea38797-ea4b-4969-b979-8d25eb543a6c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:33.748 [print] https://geodata.nationaalgeoregister.nl/inspire/elu/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:33.749 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:33.750 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:33.750 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:33.751 [print] Beheer PDOK
57
* print operateson
0
05:04:33.751 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6318009c-7b11-4ab9-9929-735584dfb692#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:33.752 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:33.753 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:33.754 [print] "true";"true"
76
* eval db.writeln('"cea38797-ea4b-4969-b979-8d25eb543a6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"cea38797-ea4b-4969-b979-8d25eb543a6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cea38797-ea4b-4969-b979-8d25eb543a6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.164:82] e75b66ae-21b1-4303-aeb3-787608707b23
ms: 610
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:33.214 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e75b66ae-21b1-4303-aeb3-787608707b23'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
596
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e75b66ae-21b1-4303-aeb3-787608707b23'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:33.818 [print] https://geodata.nationaalgeoregister.nl/inspire/elu/wfs?request=GetCapabilitiesservice=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:33.819 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:33.820 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:33.820 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:33.821 [print] Beheer PDOK
57
* print operateson
0
05:04:33.821 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6318009c-7b11-4ab9-9929-735584dfb692#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:33.822 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:33.823 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:33.824 [print] "true";"true"
76
* eval db.writeln('"e75b66ae-21b1-4303-aeb3-787608707b23","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e75b66ae-21b1-4303-aeb3-787608707b23","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e75b66ae-21b1-4303-aeb3-787608707b23","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.165:82] c78a99eb-9ba3-4307-a21b-2a64ad5da039
ms: 614
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:33.594 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c78a99eb-9ba3-4307-a21b-2a64ad5da039'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
600
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c78a99eb-9ba3-4307-a21b-2a64ad5da039'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:34.202 [print] https://service.pdok.nl/rvo/mosselzaadinvanginstallaties/wms/v1_0?service=wms&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:34.203 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:34.203 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:34.203 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:34.204 [print] Beheer PDOK
57
* print operateson
0
05:04:34.204 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=a04afee4-47d5-45b7-b7a0-a6f86106af11#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:34.206 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:34.206 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:34.207 [print] "true";"true"
76
* eval db.writeln('"c78a99eb-9ba3-4307-a21b-2a64ad5da039","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"c78a99eb-9ba3-4307-a21b-2a64ad5da039","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c78a99eb-9ba3-4307-a21b-2a64ad5da039","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.166:82] 62dc32f1-853c-416a-876b-6e083554f1b6
ms: 656
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:33.599 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '62dc32f1-853c-416a-876b-6e083554f1b6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
643
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '62dc32f1-853c-416a-876b-6e083554f1b6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:34.250 [print] https://service.pdok.nl/ienw/geluidskaartspoorwegenetmaal/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:34.251 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:34.251 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:34.251 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:34.252 [print] Beheer PDOK
57
* print operateson
0
05:04:34.252 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c3c004ad-5387-4b00-a225-9afbcaa5d31b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:34.254 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:34.254 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:34.255 [print] "true";"true"
76
* eval db.writeln('"62dc32f1-853c-416a-876b-6e083554f1b6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"62dc32f1-853c-416a-876b-6e083554f1b6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"62dc32f1-853c-416a-876b-6e083554f1b6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.167:82] 80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a
ms: 608
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:33.758 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
594
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:34.360 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartschipholetmaal/v2/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:34.361 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:34.362 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:34.362 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:34.363 [print] Beheer PDOK
57
* print operateson
0
05:04:34.363 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=83dab947-387b-49df-8ad2-32bb10d46d38#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:34.364 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:34.365 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:34.366 [print] "true";"true"
76
* eval db.writeln('"80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.168:82] a1ed8a00-da07-472e-9627-99175d437c94
ms: 578
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:33.827 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a1ed8a00-da07-472e-9627-99175d437c94'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a1ed8a00-da07-472e-9627-99175d437c94'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:34.396 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartschipholetmaal/v2/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:34.397 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:34.398 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:34.398 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:34.399 [print] Beheer PDOK
57
* print operateson
0
05:04:34.400 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=83dab947-387b-49df-8ad2-32bb10d46d38#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:34.402 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:34.403 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:34.405 [print] "true";"true"
76
* eval db.writeln('"a1ed8a00-da07-472e-9627-99175d437c94","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"a1ed8a00-da07-472e-9627-99175d437c94","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a1ed8a00-da07-472e-9627-99175d437c94","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.169:82] c474b492-da63-4a33-9bdd-b3709ce2cd6c
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:34.211 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c474b492-da63-4a33-9bdd-b3709ce2cd6c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c474b492-da63-4a33-9bdd-b3709ce2cd6c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:34.774 [print] https://service.pdok.nl/ienw/geluidskaartschipholnacht/wms/v1_0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:34.775 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:34.776 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:34.776 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:34.777 [print] Beheer PDOK
57
* print operateson
0
05:04:34.777 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=58d39928-f502-48c9-a8c1-03244dc181bf#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:34.778 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:34.779 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:34.780 [print] "true";"true"
76
* eval db.writeln('"c474b492-da63-4a33-9bdd-b3709ce2cd6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c474b492-da63-4a33-9bdd-b3709ce2cd6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c474b492-da63-4a33-9bdd-b3709ce2cd6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.170:82] e258f171-6f56-4d4d-8311-027b30213c2d
ms: 594
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:34.258 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e258f171-6f56-4d4d-8311-027b30213c2d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
580
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e258f171-6f56-4d4d-8311-027b30213c2d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:34.847 [print] https://service.pdok.nl/kadaster/cp/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:34.848 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:34.848 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:34.848 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:34.849 [print] Beheer PDOK
57
* print operateson
0
05:04:34.849 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e80ad426-1392-4349-9f80-14dae5f1bf57#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:34.851 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:34.852 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:34.852 [print] "true";"true"
76
* eval db.writeln('"e258f171-6f56-4d4d-8311-027b30213c2d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e258f171-6f56-4d4d-8311-027b30213c2d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e258f171-6f56-4d4d-8311-027b30213c2d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.171:82] 89b35a6c-c099-456b-8eaf-2b83c7a35c74
ms: 587
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:34.384 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '89b35a6c-c099-456b-8eaf-2b83c7a35c74'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
572
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '89b35a6c-c099-456b-8eaf-2b83c7a35c74'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:34.964 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-rvo-np/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:34.965 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:34.966 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
05:04:34.967 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:34.968 [print] Beheer PDOK
57
* print operateson
0
05:04:34.968 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=247a1d15-0a67-40ce-85be-1403c08f15a8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:34.969 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:34.970 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:34.971 [print] "true";"true"
76
* eval db.writeln('"89b35a6c-c099-456b-8eaf-2b83c7a35c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"89b35a6c-c099-456b-8eaf-2b83c7a35c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"89b35a6c-c099-456b-8eaf-2b83c7a35c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.172:82] d7d19437-f875-45b3-86cd-2fa3335479ec
ms: 609
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:34.412 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
2
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
3
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd7d19437-f875-45b3-86cd-2fa3335479ec'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
590
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd7d19437-f875-45b3-86cd-2fa3335479ec'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:35.015 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-rvo-np/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:35.016 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:35.016 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:35.016 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:35.017 [print] Beheer PDOK
57
* print operateson
0
05:04:35.017 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=247a1d15-0a67-40ce-85be-1403c08f15a8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:35.019 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:35.019 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:35.020 [print] "true";"true"
76
* eval db.writeln('"d7d19437-f875-45b3-86cd-2fa3335479ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d7d19437-f875-45b3-86cd-2fa3335479ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d7d19437-f875-45b3-86cd-2fa3335479ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.173:82] 4f4c7848-1767-4c67-be08-87d45d07f313
ms: 755
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:34.783 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4f4c7848-1767-4c67-be08-87d45d07f313'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
711
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4f4c7848-1767-4c67-be08-87d45d07f313'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
3
34
* def title = get response //citation/CI_Citation/title/CharacterString
3
35
* def email = get response //electronicMailAddress/CharacterString
3
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
3
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
3
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
2
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
2
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:35.519 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsgebieden\/v2\/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
05:04:35.521 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
0
05:04:35.523 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:35.523 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
3
56
* print organisationpath
0
05:04:35.526 [print] Beheer PDOK
57
* print operateson
0
05:04:35.526 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f273941e-9c3b-43bc-b886-2d50d0bf9348#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
3
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
3
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:35.532 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
3
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:35.535 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
3
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:35.538 [print] "true";"true"
76
* eval db.writeln('"4f4c7848-1767-4c67-be08-87d45d07f313","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4f4c7848-1767-4c67-be08-87d45d07f313","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4f4c7848-1767-4c67-be08-87d45d07f313","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.174:82] 82541a1f-2e4e-459f-ab2f-e97cac3ad040
ms: 709
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:34.856 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '82541a1f-2e4e-459f-ab2f-e97cac3ad040'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
668
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '82541a1f-2e4e-459f-ab2f-e97cac3ad040'
6
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
5
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
3
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:35.551 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsgebiedtypen\/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:35.552 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:35.554 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:35.554 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:04:35.556 [print] Beheer PDOK
57
* print operateson
0
05:04:35.556 [print] http://nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=03671a9e-6aaf-464d-be99-9aad25cef9e3
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:35.560 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:35.562 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:35.564 [print] "true";"true"
76
* eval db.writeln('"82541a1f-2e4e-459f-ab2f-e97cac3ad040","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"82541a1f-2e4e-459f-ab2f-e97cac3ad040","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"82541a1f-2e4e-459f-ab2f-e97cac3ad040","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.175:82] 9c5351c8-d8f4-41c2-9642-42a63496a6fe
ms: 666
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:34.974 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9c5351c8-d8f4-41c2-9642-42a63496a6fe'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
623
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c5351c8-d8f4-41c2-9642-42a63496a6fe'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:35.613 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsgebiedtypen\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:35.614 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:35.616 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:35.616 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:04:35.618 [print] Beheer PDOK
57
* print operateson
13
05:04:35.618 [print] http://nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=03671a9e-6aaf-464d-be99-9aad25cef9e3
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:35.635 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:35.637 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:35.639 [print] "true";"true"
76
* eval db.writeln('"9c5351c8-d8f4-41c2-9642-42a63496a6fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9c5351c8-d8f4-41c2-9642-42a63496a6fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9c5351c8-d8f4-41c2-9642-42a63496a6fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.176:82] 1fa220c2-5f2e-4943-a57e-c291cc35084b
ms: 769
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:35.023 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1fa220c2-5f2e-4943-a57e-c291cc35084b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
730
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1fa220c2-5f2e-4943-a57e-c291cc35084b'
3
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
3
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
3
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:35.775 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsgebieden\/v2\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
05:04:35.777 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
0
05:04:35.779 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:35.779 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:04:35.782 [print] Beheer PDOK
57
* print operateson
0
05:04:35.782 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=f273941e-9c3b-43bc-b886-2d50d0bf9348#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:35.787 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:35.789 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:35.792 [print] "true";"true"
76
* eval db.writeln('"1fa220c2-5f2e-4943-a57e-c291cc35084b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1fa220c2-5f2e-4943-a57e-c291cc35084b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1fa220c2-5f2e-4943-a57e-c291cc35084b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.177:82] 1ce74355-763a-481d-b9d7-aaafbf0d7d53
ms: 689
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:35.541 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1ce74355-763a-481d-b9d7-aaafbf0d7d53'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
657
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1ce74355-763a-481d-b9d7-aaafbf0d7d53'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
6
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:36.217 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsoorten\/v2\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:36.219 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
0
05:04:36.220 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:36.221 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:04:36.223 [print] Beheer PDOK
57
* print operateson
0
05:04:36.223 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=28c4780a-1a44-4376-b283-14a50a481729#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:36.226 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:36.228 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:36.230 [print] "true";"true"
76
* eval db.writeln('"1ce74355-763a-481d-b9d7-aaafbf0d7d53","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1ce74355-763a-481d-b9d7-aaafbf0d7d53","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1ce74355-763a-481d-b9d7-aaafbf0d7d53","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.178:82] e08079df-6c19-486e-916e-5c9948cfafea
ms: 663
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:35.567 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e08079df-6c19-486e-916e-5c9948cfafea'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
643
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e08079df-6c19-486e-916e-5c9948cfafea'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:36.219 [print] https://geodata.nationaalgeoregister.nl/inspire/su-vector/wfs?&request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:36.220 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:36.221 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:36.221 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:36.222 [print] Beheer PDOK
57
* print operateson
0
05:04:36.223 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=10d1153e-778f-4995-9b6c-7c69b196cccb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
3
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:36.227 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:36.228 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:36.230 [print] "true";"true"
76
* eval db.writeln('"e08079df-6c19-486e-916e-5c9948cfafea","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e08079df-6c19-486e-916e-5c9948cfafea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e08079df-6c19-486e-916e-5c9948cfafea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.179:82] a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9
ms: 617
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:35.642 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
604
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:36.253 [print] https://service.pdok.nl/kadaster/lu/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:04:36.254 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:36.255 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:36.255 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:36.256 [print] Beheer PDOK
57
* print operateson
1
05:04:36.256 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a88#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:36.258 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:36.259 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:36.259 [print] "true";"true"
76
* eval db.writeln('"a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.180:82] 488c1e6d-363e-4476-b2ff-17756ac9b35f
ms: 552
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:35.795 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '488c1e6d-363e-4476-b2ff-17756ac9b35f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
536
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '488c1e6d-363e-4476-b2ff-17756ac9b35f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:36.339 [print] https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:36.340 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:36.341 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:36.342 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:36.343 [print] Beheer PDOK
57
* print operateson
0
05:04:36.343 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:36.345 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:36.346 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:36.347 [print] "true";"true"
76
* eval db.writeln('"488c1e6d-363e-4476-b2ff-17756ac9b35f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"488c1e6d-363e-4476-b2ff-17756ac9b35f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"488c1e6d-363e-4476-b2ff-17756ac9b35f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.181:82] 88a93a3b-d522-4c5d-9b0f-c6c39a118442
ms: 642
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:36.233 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '88a93a3b-d522-4c5d-9b0f-c6c39a118442'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
626
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '88a93a3b-d522-4c5d-9b0f-c6c39a118442'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:36.868 [print] https://geodata.nationaalgeoregister.nl/inspire/su-vector/wms?&request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:36.869 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:36.870 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:36.870 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:36.871 [print] Beheer PDOK
57
* print operateson
0
05:04:36.871 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=10d1153e-778f-4995-9b6c-7c69b196cccb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:36.873 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:36.874 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:36.875 [print] "true";"true"
76
* eval db.writeln('"88a93a3b-d522-4c5d-9b0f-c6c39a118442","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"88a93a3b-d522-4c5d-9b0f-c6c39a118442","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"88a93a3b-d522-4c5d-9b0f-c6c39a118442","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.182:82] d94b1eca-8a7d-4dc4-b979-36257878758f
ms: 595
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:36.234 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd94b1eca-8a7d-4dc4-b979-36257878758f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
582
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd94b1eca-8a7d-4dc4-b979-36257878758f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:36.823 [print] https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:36.824 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:36.825 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:36.825 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:36.826 [print] Beheer PDOK
57
* print operateson
0
05:04:36.826 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:36.827 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:36.828 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:36.829 [print] "true";"true"
76
* eval db.writeln('"d94b1eca-8a7d-4dc4-b979-36257878758f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d94b1eca-8a7d-4dc4-b979-36257878758f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d94b1eca-8a7d-4dc4-b979-36257878758f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.183:82] 6a129fd1-0988-4b8a-975a-6ff134b6754a
ms: 652
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:36.263 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
5
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6a129fd1-0988-4b8a-975a-6ff134b6754a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
631
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6a129fd1-0988-4b8a-975a-6ff134b6754a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:36.908 [print] https://service.pdok.nl/ienw/geluidskaartspoorwegennacht/wms/v1_0?service=wms&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:36.908 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:36.909 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:36.910 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:36.911 [print] Beheer PDOK
57
* print operateson
0
05:04:36.911 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=002d9127-c16d-4b8d-9f5e-102a8c8e36c4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:36.912 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:36.913 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:36.914 [print] "true";"true"
76
* eval db.writeln('"6a129fd1-0988-4b8a-975a-6ff134b6754a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6a129fd1-0988-4b8a-975a-6ff134b6754a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6a129fd1-0988-4b8a-975a-6ff134b6754a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.184:82] 42f5363b-cea7-4163-a4e9-bc2d1a7a243c
ms: 610
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:36.350 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
3
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '42f5363b-cea7-4163-a4e9-bc2d1a7a243c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
592
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '42f5363b-cea7-4163-a4e9-bc2d1a7a243c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:36.953 [print] https://service.pdok.nl/ienw/geluidskaartspoorwegennacht/wfs/v1_0?service=wfs&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
05:04:36.955 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:36.956 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:36.956 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:36.957 [print] Beheer PDOK
57
* print operateson
0
05:04:36.957 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=002d9127-c16d-4b8d-9f5e-102a8c8e36c4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:36.959 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:36.960 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:36.960 [print] "true";"true"
76
* eval db.writeln('"42f5363b-cea7-4163-a4e9-bc2d1a7a243c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"42f5363b-cea7-4163-a4e9-bc2d1a7a243c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"42f5363b-cea7-4163-a4e9-bc2d1a7a243c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.185:82] f76bdce5-344e-415f-8f2c-972755e80b65
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:36.832 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f76bdce5-344e-415f-8f2c-972755e80b65'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
555
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f76bdce5-344e-415f-8f2c-972755e80b65'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:37.395 [print] https://geodata.nationaalgeoregister.nl/schelpdierwater/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:37.396 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:37.397 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:37.397 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:37.398 [print] Beheer PDOK
57
* print operateson
0
05:04:37.399 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=4783ea4f-6b8c-4600-8af0-516f3556cfe9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:37.400 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:37.401 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:37.403 [print] "true";"true"
76
* eval db.writeln('"f76bdce5-344e-415f-8f2c-972755e80b65","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f76bdce5-344e-415f-8f2c-972755e80b65","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f76bdce5-344e-415f-8f2c-972755e80b65","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.186:82] 9c80458b-12c6-4d38-8f6d-387ab6e4ed21
ms: 600
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:36.878 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9c80458b-12c6-4d38-8f6d-387ab6e4ed21'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
582
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c80458b-12c6-4d38-8f6d-387ab6e4ed21'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:37.471 [print] https://geodata.nationaalgeoregister.nl/natura2000/wms?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:37.472 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:37.473 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:37.473 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:37.474 [print] Beheer PDOK
57
* print operateson
0
05:04:37.474 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8829e5dd-c861-4639-a6c8-fdbb6e3440d2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:37.476 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:37.477 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:37.478 [print] "true";"true"
76
* eval db.writeln('"9c80458b-12c6-4d38-8f6d-387ab6e4ed21","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9c80458b-12c6-4d38-8f6d-387ab6e4ed21","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9c80458b-12c6-4d38-8f6d-387ab6e4ed21","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.187:82] aaf53e6f-fe99-4a86-a61c-50b128412d80
ms: 582
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:36.917 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'aaf53e6f-fe99-4a86-a61c-50b128412d80'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
569
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'aaf53e6f-fe99-4a86-a61c-50b128412d80'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:37.493 [print] https://geodata.nationaalgeoregister.nl/mosselenoesterhabitats/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:37.494 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:37.495 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:37.495 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:37.496 [print] Beheer PDOK
57
* print operateson
0
05:04:37.496 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3d59fd06-9aec-4744-91e7-65e119f74569#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:37.497 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:37.498 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:37.499 [print] "true";"true"
76
* eval db.writeln('"aaf53e6f-fe99-4a86-a61c-50b128412d80","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"aaf53e6f-fe99-4a86-a61c-50b128412d80","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"aaf53e6f-fe99-4a86-a61c-50b128412d80","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.188:82] d4e573b0-bd3b-4d7b-a97d-e65841e6e0b4
ms: 575
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:36.964 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd4e573b0-bd3b-4d7b-a97d-e65841e6e0b4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd4e573b0-bd3b-4d7b-a97d-e65841e6e0b4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:37.530 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/kaderrichtlijnwateractueel\/wms\/v1_0?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:37.531 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:37.533 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:37.533 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:37.534 [print] Beheer PDOK
57
* print operateson
0
05:04:37.534 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=622a632a-c57b-44a2-83a4-e51223d5f15g#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=782cab20-8328-45f1-a9b2-c27d07c14066#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f7bb2351-9788-42ea-a58b-a5ee1842304e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=2e31680f-68b5-4ff3-94a4-9c24109ffd5e#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:37.536 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:37.537 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:37.538 [print] "true";"true"
76
* eval db.writeln('"d4e573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d4e573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d4e573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.189:82] 7681eb19-a914-4dc7-9208-c2a131dca06d
ms: 560
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:37.406 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7681eb19-a914-4dc7-9208-c2a131dca06d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
544
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7681eb19-a914-4dc7-9208-c2a131dca06d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:37.959 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/kaderrichtlijnwater2015\/wms\/v1_0?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:37.960 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:37.960 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:37.960 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:37.961 [print] Beheer PDOK
57
* print operateson
0
05:04:37.961 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbeag#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbead#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:37.963 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:37.963 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:37.964 [print] "true";"true"
76
* eval db.writeln('"7681eb19-a914-4dc7-9208-c2a131dca06d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
2
77
* eval db.writeln('"7681eb19-a914-4dc7-9208-c2a131dca06d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7681eb19-a914-4dc7-9208-c2a131dca06d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.190:82] 68722979-8d6c-4ee4-a81a-8381d2588fe5
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:37.481 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68722979-8d6c-4ee4-a81a-8381d2588fe5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
1
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68722979-8d6c-4ee4-a81a-8381d2588fe5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:38.048 [print] https://geodata.nationaalgeoregister.nl/nl/rws/hy-n/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:38.049 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:38.049 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:38.049 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:38.050 [print] Beheer PDOK
57
* print operateson
0
05:04:38.050 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=eu-f297898-2640-44c2-bbe9-c0480da83794#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:38.052 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:38.052 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:38.053 [print] "true";"true"
76
* eval db.writeln('"68722979-8d6c-4ee4-a81a-8381d2588fe5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"68722979-8d6c-4ee4-a81a-8381d2588fe5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"68722979-8d6c-4ee4-a81a-8381d2588fe5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.191:82] af4841b5-ce83-4edb-af41-429a21140316
ms: 681
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:37.502 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'af4841b5-ce83-4edb-af41-429a21140316'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
604
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'af4841b5-ce83-4edb-af41-429a21140316'
4
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
3
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
3
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
8
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
5
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
3
05:04:38.142 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingtypen\/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
1
05:04:38.144 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
20
52
* print protocol2
0
05:04:38.164 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:38.165 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
3
56
* print organisationpath
0
05:04:38.168 [print] Beheer PDOK
57
* print operateson
1
05:04:38.169 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=977e0e94-7aa9-4784-b2da-eaec44adb61b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:38.174 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:38.176 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:38.179 [print] "true";"true"
76
* eval db.writeln('"af4841b5-ce83-4edb-af41-429a21140316","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"af4841b5-ce83-4edb-af41-429a21140316","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"af4841b5-ce83-4edb-af41-429a21140316","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
3
Scenario: [1.192:82] 0bc2bcb8-558b-446b-b4e2-381b13d483a8
ms: 593
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:37.541 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0bc2bcb8-558b-446b-b4e2-381b13d483a8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
569
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0bc2bcb8-558b-446b-b4e2-381b13d483a8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:38.118 [print] https://geodata.nationaalgeoregister.nl/mosselenoesterhabitats/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:38.118 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
6
05:04:38.125 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:38.126 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:38.127 [print] Beheer PDOK
57
* print operateson
0
05:04:38.127 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3d59fd06-9aec-4744-91e7-65e119f74569#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:38.129 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:38.131 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
2
05:04:38.134 [print] "true";"true"
76
* eval db.writeln('"0bc2bcb8-558b-446b-b4e2-381b13d483a8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0bc2bcb8-558b-446b-b4e2-381b13d483a8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0bc2bcb8-558b-446b-b4e2-381b13d483a8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.193:82] b0119753-5625-4500-9df3-13823ff9868f
ms: 631
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:37.969 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b0119753-5625-4500-9df3-13823ff9868f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
597
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b0119753-5625-4500-9df3-13823ff9868f'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:38.584 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingtypen\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:38.585 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:38.587 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:38.587 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:04:38.589 [print] Beheer PDOK
57
* print operateson
0
05:04:38.590 [print] http://nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=977e0e94-7aa9-4784-b2da-eaec44adb61b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:38.594 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:38.596 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:38.598 [print] "true";"true"
76
* eval db.writeln('"b0119753-5625-4500-9df3-13823ff9868f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b0119753-5625-4500-9df3-13823ff9868f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"b0119753-5625-4500-9df3-13823ff9868f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.194:82] 01d4dab6-03ad-4e82-b719-4daf8b96ea14
ms: 590
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:38.057 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '01d4dab6-03ad-4e82-b719-4daf8b96ea14'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
578
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '01d4dab6-03ad-4e82-b719-4daf8b96ea14'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:38.642 [print] https://service.pdok.nl/kadaster/au/wms/v2_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:04:38.643 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:38.644 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:38.644 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:38.644 [print] Beheer PDOK
57
* print operateson
0
05:04:38.644 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7dd1fd45-ace5-41e0-93a6-64e3be231717#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:38.646 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:38.646 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:38.647 [print] "true";"true"
76
* eval db.writeln('"01d4dab6-03ad-4e82-b719-4daf8b96ea14","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"01d4dab6-03ad-4e82-b719-4daf8b96ea14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"01d4dab6-03ad-4e82-b719-4daf8b96ea14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.195:82] bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:38.139 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:38.689 [print] https://service.pdok.nl/kadaster/lc/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:38.690 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:38.691 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:38.691 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:38.692 [print] Beheer PDOK
57
* print operateson
1
05:04:38.693 [print] https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1689d1b7-ef22-417a-becd-d8d9a8a90a10#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:38.694 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:38.695 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:38.696 [print] "true";"true"
76
* eval db.writeln('"bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.196:82] 5b40b9b4-fcb2-4553-bcab-34824c43c992
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:38.186 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5b40b9b4-fcb2-4553-bcab-34824c43c992'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5b40b9b4-fcb2-4553-bcab-34824c43c992'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:38.744 [print] https://geodata.nationaalgeoregister.nl/inspire/ad/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:38.745 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:38.746 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:38.746 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:38.747 [print] Beheer PDOK
57
* print operateson
0
05:04:38.747 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a5f961e9-ebdd-41e2-b8e8-ab33ed340a83#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:38.749 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:38.749 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:38.750 [print] "true";"true"
76
* eval db.writeln('"5b40b9b4-fcb2-4553-bcab-34824c43c992","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5b40b9b4-fcb2-4553-bcab-34824c43c992","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5b40b9b4-fcb2-4553-bcab-34824c43c992","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.197:82] 275b64ab-34c2-41f8-8904-97812c7f716e
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:38.604 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '275b64ab-34c2-41f8-8904-97812c7f716e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '275b64ab-34c2-41f8-8904-97812c7f716e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
3
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:39.164 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-rvo-wl/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
05:04:39.166 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:39.166 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:39.166 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:39.167 [print] Beheer PDOK
57
* print operateson
0
05:04:39.167 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=19165027-a13a-4c19-9013-ec1fd191019d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:39.168 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:39.169 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:39.170 [print] "true";"true"
76
* eval db.writeln('"275b64ab-34c2-41f8-8904-97812c7f716e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"275b64ab-34c2-41f8-8904-97812c7f716e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"275b64ab-34c2-41f8-8904-97812c7f716e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.198:82] bc0b75c6-3eef-49de-aca2-8483024903c1
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:38.650 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bc0b75c6-3eef-49de-aca2-8483024903c1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bc0b75c6-3eef-49de-aca2-8483024903c1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:39.214 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-rvo-wl/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:39.215 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:39.216 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:39.216 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:39.217 [print] Beheer PDOK
57
* print operateson
0
05:04:39.217 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=19165027-a13a-4c19-9013-ec1fd191019d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:39.218 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:39.219 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:39.220 [print] "true";"true"
76
* eval db.writeln('"bc0b75c6-3eef-49de-aca2-8483024903c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bc0b75c6-3eef-49de-aca2-8483024903c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bc0b75c6-3eef-49de-aca2-8483024903c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.199:82] 68d14b1c-71ad-4ce7-8267-45787a80c2d4
ms: 650
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:38.700 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68d14b1c-71ad-4ce7-8267-45787a80c2d4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
634
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68d14b1c-71ad-4ce7-8267-45787a80c2d4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:39.344 [print] https:\/\/geodata.nationaalgeoregister.nl\/inspire\/ad\/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:39.344 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:39.345 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:39.345 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:39.346 [print] Beheer PDOK
57
* print operateson
0
05:04:39.346 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a5f961e9-ebdd-41e2-b8e8-ab33ed340a83#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:39.348 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:39.349 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:39.350 [print] "true";"true"
76
* eval db.writeln('"68d14b1c-71ad-4ce7-8267-45787a80c2d4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"68d14b1c-71ad-4ce7-8267-45787a80c2d4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"68d14b1c-71ad-4ce7-8267-45787a80c2d4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.200:82] 2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0
ms: 625
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:38.753 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
1
25
And param request = 'GetRecordById'
0
26
And param id = '2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
600
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
11
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:39.373 [print] https://geodata.nationaalgeoregister.nl/rws/richtlijnoverstromingsrisico2018/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:39.374 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:39.375 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:39.375 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:39.375 [print] Beheer PDOK
57
* print operateson
0
05:04:39.376 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=rorl-9d8e-4758-83fx-28b057f185g1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:39.377 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:39.378 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:39.378 [print] "true";"true"
76
* eval db.writeln('"2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.201:82] 2b9da196-422e-4b0e-a5ba-ba41ade308e9
ms: 589
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:39.175 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2b9da196-422e-4b0e-a5ba-ba41ade308e9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2b9da196-422e-4b0e-a5ba-ba41ade308e9'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:39.750 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingtypen\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:39.752 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:39.753 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:39.753 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:04:39.755 [print] Beheer PDOK
57
* print operateson
0
05:04:39.755 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=977e0e94-7aa9-4784-b2da-eaec44adb61b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:39.759 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:39.761 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:39.763 [print] "true";"true"
76
* eval db.writeln('"2b9da196-422e-4b0e-a5ba-ba41ade308e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2b9da196-422e-4b0e-a5ba-ba41ade308e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2b9da196-422e-4b0e-a5ba-ba41ade308e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.202:82] c374d556-7b6e-459b-83c7-74da6ad90a59
ms: 606
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:39.223 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c374d556-7b6e-459b-83c7-74da6ad90a59'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
587
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c374d556-7b6e-459b-83c7-74da6ad90a59'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:39.819 [print] https://geodata.nationaalgeoregister.nl/schelpdierwater/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:39.820 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:39.821 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:39.822 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:39.823 [print] Beheer PDOK
57
* print operateson
1
05:04:39.823 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4783ea4f-6b8c-4600-8af0-516f3556cfe9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:39.826 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:39.827 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:39.828 [print] "true";"true"
76
* eval db.writeln('"c374d556-7b6e-459b-83c7-74da6ad90a59","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c374d556-7b6e-459b-83c7-74da6ad90a59","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c374d556-7b6e-459b-83c7-74da6ad90a59","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.203:82] 918388cf-9d8c-4264-b108-3e375bde0d52
ms: 582
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:39.353 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '918388cf-9d8c-4264-b108-3e375bde0d52'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
567
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '918388cf-9d8c-4264-b108-3e375bde0d52'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:39.928 [print] https:\/\/geodata.nationaalgeoregister.nl\/noordzeevaarwegmarkeringenrd\/wms?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:39.929 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:39.930 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:39.931 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:39.932 [print] Beheer PDOK
57
* print operateson
0
05:04:39.932 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=be1b1514-8d1f-48e1-9624-fee9b784138b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:39.934 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:39.934 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:39.935 [print] "true";"true"
76
* eval db.writeln('"918388cf-9d8c-4264-b108-3e375bde0d52","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"918388cf-9d8c-4264-b108-3e375bde0d52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"918388cf-9d8c-4264-b108-3e375bde0d52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.204:82] 62c0d0a5-5826-406d-a625-d84bc5fec800
ms: 584
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:39.382 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '62c0d0a5-5826-406d-a625-d84bc5fec800'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
570
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '62c0d0a5-5826-406d-a625-d84bc5fec800'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:39.960 [print] https:\/\/geodata.nationaalgeoregister.nl\/noordzeevaarwegmarkeringenrd\/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:39.961 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:39.961 [print] ["OGC:WFS","OGC:WFS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:39.961 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:39.962 [print] Beheer PDOK
57
* print operateson
0
05:04:39.962 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=be1b1514-8d1f-48e1-9624-fee9b784138b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:39.964 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:39.965 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:39.966 [print] "true";"true"
76
* eval db.writeln('"62c0d0a5-5826-406d-a625-d84bc5fec800","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"62c0d0a5-5826-406d-a625-d84bc5fec800","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"62c0d0a5-5826-406d-a625-d84bc5fec800","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.205:82] 93a9571d-1754-47ee-a8f9-92633abfab3a
ms: 601
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:39.766 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '93a9571d-1754-47ee-a8f9-92633abfab3a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
587
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '93a9571d-1754-47ee-a8f9-92633abfab3a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:40.362 [print] https://service.pdok.nl/rvo/invasieve-exoten/wfs/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:40.362 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:40.363 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:40.363 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:40.364 [print] Beheer PDOK
57
* print operateson
0
05:04:40.364 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=3703b249-a0eb-484e-ba7a-10e31a55bcec&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:40.365 [print] "http:\/\/";"";"http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:40.366 [print] "";"Deze service voldoet aan de specificaties voor spatial data services";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:40.367 [print] "true";"true";"true"
76
* eval db.writeln('"93a9571d-1754-47ee-a8f9-92633abfab3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"93a9571d-1754-47ee-a8f9-92633abfab3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"93a9571d-1754-47ee-a8f9-92633abfab3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.206:82] 1bd24d1e-aa13-4395-809e-893570f7c651
ms: 603
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:39.833 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1bd24d1e-aa13-4395-809e-893570f7c651'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
589
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1bd24d1e-aa13-4395-809e-893570f7c651'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:40.430 [print] https://geodata.nationaalgeoregister.nl/overheidsdiensten/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:40.431 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:40.432 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:40.432 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:40.433 [print] Beheer PDOK
57
* print operateson
0
05:04:40.433 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=c935f2ab-9b65-4dc4-94a0-73aeb840a941#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:40.434 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:40.435 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:40.436 [print] "true";"true"
76
* eval db.writeln('"1bd24d1e-aa13-4395-809e-893570f7c651","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1bd24d1e-aa13-4395-809e-893570f7c651","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1bd24d1e-aa13-4395-809e-893570f7c651","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.207:82] 40f04047-3b61-40eb-b026-c1a0caa71881
ms: 589
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:39.939 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '40f04047-3b61-40eb-b026-c1a0caa71881'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '40f04047-3b61-40eb-b026-c1a0caa71881'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:40.509 [print] https:\/\/geodata.nationaalgeoregister.nl\/reststromen\/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:40.510 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:40.511 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:40.511 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:40.512 [print] Beheer PDOK
57
* print operateson
0
05:04:40.512 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=11d83e36-fd0d-46bc-838c-0567c5dfdb19#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=34dacd72-d2fb-4e28-844d-73d3b9c3fef2#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=419b85e5-04ee-4cc9-b910-bc58594a943a#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=119f7512-a71e-4d1a-82e7-7a2b63f9338b#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6ea55ec4-f312-40ef-9935-68806e61b496#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=af784610-df36-4d40-bac0-23d8e728999f#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=24eb504e-f5f3-4ecf-b760-cc5630e82a57#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
11
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:40.524 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:40.526 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:40.527 [print] "true";"true"
76
* eval db.writeln('"40f04047-3b61-40eb-b026-c1a0caa71881","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"40f04047-3b61-40eb-b026-c1a0caa71881","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"40f04047-3b61-40eb-b026-c1a0caa71881","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.208:82] 2e5571fb-c840-4d84-8224-62ee7293b2b3
ms: 579
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:39.969 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2e5571fb-c840-4d84-8224-62ee7293b2b3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2e5571fb-c840-4d84-8224-62ee7293b2b3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:40.539 [print] https://service.pdok.nl/provincies/grondwaterbeschermingsgebieden/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:40.540 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:40.540 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:40.540 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:40.541 [print] Beheer PDOK
57
* print operateson
0
05:04:40.542 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=666554ed-5106-487d-b4bf-69fbd888a6d7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:40.543 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
3
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:40.547 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:40.548 [print] "true";"true"
76
* eval db.writeln('"2e5571fb-c840-4d84-8224-62ee7293b2b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2e5571fb-c840-4d84-8224-62ee7293b2b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2e5571fb-c840-4d84-8224-62ee7293b2b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.209:82] ceda1b88-32ac-40b2-a841-71eb041c9427
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:40.370 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ceda1b88-32ac-40b2-a841-71eb041c9427'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
555
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ceda1b88-32ac-40b2-a841-71eb041c9427'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:40.935 [print] https:\/\/geodata.nationaalgeoregister.nl\/reststromen\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:40.936 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:40.937 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:40.937 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:40.938 [print] Beheer PDOK
57
* print operateson
0
05:04:40.938 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=11d83e36-fd0d-46bc-838c-0567c5dfdb19#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=34dacd72-d2fb-4e28-844d-73d3b9c3fef2#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=419b85e5-04ee-4cc9-b910-bc58594a943a#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=119f7512-a71e-4d1a-82e7-7a2b63f9338b#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6ea55ec4-f312-40ef-9935-68806e61b496#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=af784610-df36-4d40-bac0-23d8e728999f#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=24eb504e-f5f3-4ecf-b760-cc5630e82a57#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:40.940 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:40.941 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:40.942 [print] "true";"true"
76
* eval db.writeln('"ceda1b88-32ac-40b2-a841-71eb041c9427","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ceda1b88-32ac-40b2-a841-71eb041c9427","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ceda1b88-32ac-40b2-a841-71eb041c9427","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.210:82] 94e5b115-bece-4140-99ed-93b8f363948e
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:40.439 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '94e5b115-bece-4140-99ed-93b8f363948e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '94e5b115-bece-4140-99ed-93b8f363948e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:41.000 [print] https:\/\/geodata.nationaalgeoregister.nl\/ahn3\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:41.001 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:41.002 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:41.002 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:41.003 [print] Beheer PDOK
57
* print operateson
0
05:04:41.003 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:41.005 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:41.006 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:41.007 [print] "true";"true"
76
* eval db.writeln('"94e5b115-bece-4140-99ed-93b8f363948e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"94e5b115-bece-4140-99ed-93b8f363948e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"94e5b115-bece-4140-99ed-93b8f363948e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.211:82] 1601e160-91e8-4091-9aca-10294f819d42
ms: 580
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:40.530 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1601e160-91e8-4091-9aca-10294f819d42'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
563
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1601e160-91e8-4091-9aca-10294f819d42'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:41.102 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-natura2000/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:41.103 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:41.104 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:41.104 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:41.104 [print] Beheer PDOK
57
* print operateson
0
05:04:41.104 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=280ed37a-b8d2-4ac5-8567-04d84fad3a41#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:04:41.108 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:41.109 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:41.110 [print] "true";"true"
76
* eval db.writeln('"1601e160-91e8-4091-9aca-10294f819d42","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1601e160-91e8-4091-9aca-10294f819d42","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1601e160-91e8-4091-9aca-10294f819d42","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.212:82] f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8
ms: 609
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:40.551 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
591
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:41.151 [print] https:\/\/geodata.nationaalgeoregister.nl\/nwbwegen\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:41.152 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:41.153 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:41.154 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:41.155 [print] Beheer PDOK
57
* print operateson
0
05:04:41.156 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a9b7026e-0a81-4813-93bd-ba49e6f28502#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:41.157 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:41.158 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:41.160 [print] "true";"true"
76
* eval db.writeln('"f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.213:82] 598c4109-21d2-4a6c-b083-9975a6736849
ms: 584
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:40.945 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '598c4109-21d2-4a6c-b083-9975a6736849'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
564
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '598c4109-21d2-4a6c-b083-9975a6736849'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:41.519 [print] https:\/\/geodata.nationaalgeoregister.nl\/nwbvaarwegen\/wms?request=getCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:41.520 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:41.521 [print] ["OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:41.522 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
05:04:41.524 [print] Beheer PDOK
57
* print operateson
1
05:04:41.525 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=00d8c7c8-98ff-4b06-8f53-b44216e6e75c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:41.527 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:41.528 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:41.530 [print] "true";"true"
76
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736849","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736849","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736849","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.214:82] 5be14ec9-9bb3-4395-a061-e7e78d04a527
ms: 598
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:41.010 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5be14ec9-9bb3-4395-a061-e7e78d04a527'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
584
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5be14ec9-9bb3-4395-a061-e7e78d04a527'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:41.602 [print] https://geodata.nationaalgeoregister.nl/inspire/bu/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:41.603 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:41.604 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:41.604 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:41.605 [print] Beheer PDOK
57
* print operateson
0
05:04:41.605 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b4ae622c-6201-49d8-bd2e-f7fce9206a1e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:41.606 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:41.607 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:41.608 [print] "true";"true"
76
* eval db.writeln('"5be14ec9-9bb3-4395-a061-e7e78d04a527","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5be14ec9-9bb3-4395-a061-e7e78d04a527","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5be14ec9-9bb3-4395-a061-e7e78d04a527","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.215:82] a7aeddf2-3b37-4668-9c75-de93d9326276
ms: 591
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:41.121 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a7aeddf2-3b37-4668-9c75-de93d9326276'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a7aeddf2-3b37-4668-9c75-de93d9326276'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
16
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:41.706 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-natura2000/wms?request=Getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:41.706 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:41.707 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:41.707 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:41.708 [print] Beheer PDOK
57
* print operateson
0
05:04:41.708 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=280ed37a-b8d2-4ac5-8567-04d84fad3a41#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:41.709 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:41.710 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:41.711 [print] "true";"true"
76
* eval db.writeln('"a7aeddf2-3b37-4668-9c75-de93d9326276","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a7aeddf2-3b37-4668-9c75-de93d9326276","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a7aeddf2-3b37-4668-9c75-de93d9326276","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.216:82] b196f948-5d87-4eb4-9854-a93841c3877f
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:41.163 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b196f948-5d87-4eb4-9854-a93841c3877f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
565
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b196f948-5d87-4eb4-9854-a93841c3877f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:41.735 [print] https://service.pdok.nl/rvo/invasieve-exoten/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:04:41.736 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:41.737 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:41.737 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:41.737 [print] Beheer PDOK
57
* print operateson
0
05:04:41.738 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3703b249-a0eb-484e-ba7a-10e31a55bcec#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:41.739 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:41.740 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:41.740 [print] "true";"true"
76
* eval db.writeln('"b196f948-5d87-4eb4-9854-a93841c3877f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b196f948-5d87-4eb4-9854-a93841c3877f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b196f948-5d87-4eb4-9854-a93841c3877f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.217:82] 7f79fc69-d0c7-4913-a05a-527c90453297
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:41.533 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7f79fc69-d0c7-4913-a05a-527c90453297'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7f79fc69-d0c7-4913-a05a-527c90453297'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:42.094 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
2
05:04:42.096 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:42.097 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:42.097 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:42.098 [print] KNMI
57
* print operateson
0
05:04:42.099 [print] https://haleconnect.com/services/bsp/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:42.101 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:42.102 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:42.104 [print] true
76
* eval db.writeln('"7f79fc69-d0c7-4913-a05a-527c90453297","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7f79fc69-d0c7-4913-a05a-527c90453297","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7f79fc69-d0c7-4913-a05a-527c90453297","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.218:82] c6308500-3439-4840-88cb-7532cabbfcb4
ms: 587
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:41.611 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c6308500-3439-4840-88cb-7532cabbfcb4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
568
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c6308500-3439-4840-88cb-7532cabbfcb4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:42.189 [print] https://haleconnect.com/ows/services/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:42.190 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:42.191 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:42.192 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:42.193 [print] KNMI
57
* print operateson
1
05:04:42.194 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:04:42.196 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:42.197 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:42.198 [print] true
76
* eval db.writeln('"c6308500-3439-4840-88cb-7532cabbfcb4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c6308500-3439-4840-88cb-7532cabbfcb4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c6308500-3439-4840-88cb-7532cabbfcb4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.219:82] 9e2e977a-16a6-42a4-a208-c4f70704f383
ms: 582
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:41.714 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9e2e977a-16a6-42a4-a208-c4f70704f383'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9e2e977a-16a6-42a4-a208-c4f70704f383'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:42.286 [print] https:\/\/service.pdok.nl\/lv\/bag\/wms\/v2_0?request=getCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:42.287 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:42.288 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:42.289 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:42.290 [print] Beheer PDOK
57
* print operateson
1
05:04:42.290 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=aa3b5e6e-7baa-40c0-8972-3353e927ec2f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:42.292 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:42.294 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
05:04:42.295 [print] "true";"true"
76
* eval db.writeln('"9e2e977a-16a6-42a4-a208-c4f70704f383","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9e2e977a-16a6-42a4-a208-c4f70704f383","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9e2e977a-16a6-42a4-a208-c4f70704f383","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.220:82] f3e68b05-f5c8-4796-bc67-33a3db1c1d65
ms: 631
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:41.743 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f3e68b05-f5c8-4796-bc67-33a3db1c1d65'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
609
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f3e68b05-f5c8-4796-bc67-33a3db1c1d65'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:42.361 [print] https://inspire.caris.nl/geoserver/cz/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:42.362 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:42.363 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:42.364 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:42.365 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:42.365 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=060d1139-c371-4c1e-9890-55999adfa4f9&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
5
05:04:42.371 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:42.372 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:42.374 [print] "true";"true"
76
* eval db.writeln('"f3e68b05-f5c8-4796-bc67-33a3db1c1d65","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f3e68b05-f5c8-4796-bc67-33a3db1c1d65","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f3e68b05-f5c8-4796-bc67-33a3db1c1d65","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.221:82] 5be1b57b-2cac-4119-92eb-700346543d47
ms: 582
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:42.107 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5be1b57b-2cac-4119-92eb-700346543d47'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
568
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5be1b57b-2cac-4119-92eb-700346543d47'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:42.684 [print] https://inspire.caris.nl/geoserver/boundary/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:42.685 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:42.685 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:42.685 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:42.686 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:42.686 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=a5241416-8401-4623-be61-57ef50447a41&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:42.687 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:42.688 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Dataset is geharmoniseerd";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:42.689 [print] "true";"true"
76
* eval db.writeln('"5be1b57b-2cac-4119-92eb-700346543d47","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5be1b57b-2cac-4119-92eb-700346543d47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5be1b57b-2cac-4119-92eb-700346543d47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.222:82] 710a6a9b-c09f-4660-b15a-2d5bee27e7e3
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:42.202 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '710a6a9b-c09f-4660-b15a-2d5bee27e7e3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '710a6a9b-c09f-4660-b15a-2d5bee27e7e3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:42.751 [print] https://service.pdok.nl/cbs/gebiedsindelingen/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:42.752 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:42.753 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:42.753 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:42.754 [print] Beheer PDOK
57
* print operateson
0
05:04:42.755 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:04:42.756 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:42.758 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
14
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:42.772 [print] "true";"true"
76
* eval db.writeln('"710a6a9b-c09f-4660-b15a-2d5bee27e7e3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"710a6a9b-c09f-4660-b15a-2d5bee27e7e3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"710a6a9b-c09f-4660-b15a-2d5bee27e7e3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.223:82] 931b1a00-ad24-4eed-a73c-cb5441056136
ms: 560
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:42.299 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '931b1a00-ad24-4eed-a73c-cb5441056136'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
544
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '931b1a00-ad24-4eed-a73c-cb5441056136'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:42.851 [print] https://service.pdok.nl/rvo/nationaleparken/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:04:42.852 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:42.853 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:42.853 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:42.854 [print] Beheer PDOK
57
* print operateson
0
05:04:42.854 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=247a1d15-0a67-40ce-85be-1403c08f15a8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:42.856 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:42.857 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:42.858 [print] "true";"true"
76
* eval db.writeln('"931b1a00-ad24-4eed-a73c-cb5441056136","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"931b1a00-ad24-4eed-a73c-cb5441056136","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"931b1a00-ad24-4eed-a73c-cb5441056136","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.224:82] 56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9
ms: 530
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:42.378 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
517
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:42.903 [print] https://service.pdok.nl/bzk/bro-geomorfologischekaart/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:42.903 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:42.904 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:42.904 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:42.905 [print] Beheer PDOK
57
* print operateson
0
05:04:42.905 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=459231d0-7379-4f26-a444-7616e1d888f0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:42.907 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:42.907 [print] #notpresent
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:42.908 [print] #notpresent
76
* eval db.writeln('"56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.225:82] 08a784fe-0da8-4ede-bec9-c28fa81fc11d
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:42.692 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '08a784fe-0da8-4ede-bec9-c28fa81fc11d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '08a784fe-0da8-4ede-bec9-c28fa81fc11d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:43.258 [print] https://service.pdok.nl/provincies/provinciaal-landschapsbeleid/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:43.259 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:43.259 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:43.260 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:43.260 [print] Beheer PDOK
57
* print operateson
0
05:04:43.260 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=60a2a7c2-d5b3-4ad5-b562-c448695357fb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:43.262 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:43.262 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:43.263 [print] "true";"true"
76
* eval db.writeln('"08a784fe-0da8-4ede-bec9-c28fa81fc11d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"08a784fe-0da8-4ede-bec9-c28fa81fc11d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"08a784fe-0da8-4ede-bec9-c28fa81fc11d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.226:82] b914aa84-1a15-4d6c-950e-00c739946029
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:42.776 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b914aa84-1a15-4d6c-950e-00c739946029'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
563
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b914aa84-1a15-4d6c-950e-00c739946029'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:43.347 [print] https://service.pdok.nl/rvo/restwarmte/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:43.348 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:43.349 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:43.349 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:43.350 [print] Beheer PDOK
57
* print operateson
0
05:04:43.350 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d6b85d84-cdb9-4a6e-b799-cf8826e22a94#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:43.351 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:43.352 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:43.353 [print] "true";"true"
76
* eval db.writeln('"b914aa84-1a15-4d6c-950e-00c739946029","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b914aa84-1a15-4d6c-950e-00c739946029","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b914aa84-1a15-4d6c-950e-00c739946029","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.227:82] 7a748a59-36f4-475b-9647-402b5ce89a1c
ms: 583
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:42.862 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7a748a59-36f4-475b-9647-402b5ce89a1c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
568
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7a748a59-36f4-475b-9647-402b5ce89a1c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:43.437 [print] https://service.pdok.nl/kadaster/lc/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:43.438 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:43.439 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:43.440 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:43.440 [print] Beheer PDOK
57
* print operateson
0
05:04:43.441 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1689d1b7-ef22-417a-becd-d8d9a8a90a10#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1689d1b7-ef22-417a-becd-d8d9a8a90a10#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:43.443 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:43.444 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:43.445 [print] "true";"true"
76
* eval db.writeln('"7a748a59-36f4-475b-9647-402b5ce89a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"7a748a59-36f4-475b-9647-402b5ce89a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7a748a59-36f4-475b-9647-402b5ce89a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.228:82] 0898d4a9-8fe6-46e9-8855-1242d8028970
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:42.911 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0898d4a9-8fe6-46e9-8855-1242d8028970'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
553
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0898d4a9-8fe6-46e9-8855-1242d8028970'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:43.472 [print] https://geodata.nationaalgeoregister.nl/rws/richtlijnoverstromingsrisico2018/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:04:43.472 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:43.473 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:43.473 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:43.474 [print] Beheer PDOK
57
* print operateson
0
05:04:43.474 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ror-9d8e-4758-83fx-28b057f185f1#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ror-9d8e-4758-83fx-28b057f185e1#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:43.475 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:43.476 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:43.477 [print] "true";"true"
76
* eval db.writeln('"0898d4a9-8fe6-46e9-8855-1242d8028970","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0898d4a9-8fe6-46e9-8855-1242d8028970","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0898d4a9-8fe6-46e9-8855-1242d8028970","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.229:82] deaf8380-ad45-48d2-8c3e-81164471bafb
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:43.266 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'deaf8380-ad45-48d2-8c3e-81164471bafb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'deaf8380-ad45-48d2-8c3e-81164471bafb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:43.834 [print] https://service.pdok.nl/cbs/vk500/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:43.835 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:43.835 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:43.835 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:43.836 [print] Beheer PDOK
57
* print operateson
0
05:04:43.836 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:43.837 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:43.838 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:43.839 [print] "true";"true"
76
* eval db.writeln('"deaf8380-ad45-48d2-8c3e-81164471bafb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"deaf8380-ad45-48d2-8c3e-81164471bafb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"deaf8380-ad45-48d2-8c3e-81164471bafb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.230:82] 2931d583-9633-49d3-ad38-aabea82f6751
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:43.356 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2931d583-9633-49d3-ad38-aabea82f6751'
0
27
And param elementsetname = 'full'
1
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2931d583-9633-49d3-ad38-aabea82f6751'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:43.924 [print] https://service.pdok.nl/bzk/bro-hydrogeology/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
05:04:43.926 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:43.927 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:43.927 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:43.929 [print] Beheer PDOK
57
* print operateson
0
05:04:43.929 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:43.942 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:43.943 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:43.944 [print] "true";"true"
76
* eval db.writeln('"2931d583-9633-49d3-ad38-aabea82f6751","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2931d583-9633-49d3-ad38-aabea82f6751","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2931d583-9633-49d3-ad38-aabea82f6751","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.231:82] 47d416f8-76e8-441c-9b19-c8f889dfe62c
ms: 602
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:43.448 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '47d416f8-76e8-441c-9b19-c8f889dfe62c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
590
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '47d416f8-76e8-441c-9b19-c8f889dfe62c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:44.046 [print] https://service.pdok.nl/kadaster/gn/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:04:44.046 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:44.047 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:44.047 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:44.048 [print] Beheer PDOK
57
* print operateson
0
05:04:44.048 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:44.049 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:44.050 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:44.050 [print] "true";"true"
76
* eval db.writeln('"47d416f8-76e8-441c-9b19-c8f889dfe62c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"47d416f8-76e8-441c-9b19-c8f889dfe62c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"47d416f8-76e8-441c-9b19-c8f889dfe62c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.232:82] 0080a9ce-b836-45bc-8fdf-07dcbe97101d
ms: 599
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:43.480 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0080a9ce-b836-45bc-8fdf-07dcbe97101d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
583
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0080a9ce-b836-45bc-8fdf-07dcbe97101d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:44.070 [print] https://service.pdok.nl/rce/ps-ch/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:44.071 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:44.072 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:44.073 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:44.074 [print] Beheer PDOK
57
* print operateson
1
05:04:44.075 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=493ab81b-75f8-4205-b030-6b2fd9eb4295#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:44.076 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:44.078 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:44.079 [print] "true";"true"
76
* eval db.writeln('"0080a9ce-b836-45bc-8fdf-07dcbe97101d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0080a9ce-b836-45bc-8fdf-07dcbe97101d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0080a9ce-b836-45bc-8fdf-07dcbe97101d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.233:82] 037e55bd-a1dc-4fde-adfe-4610d3a3d5cb
ms: 584
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:43.842 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '037e55bd-a1dc-4fde-adfe-4610d3a3d5cb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
569
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '037e55bd-a1dc-4fde-adfe-4610d3a3d5cb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
2
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:44.421 [print] https://service.pdok.nl/cbs/pd/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:04:44.421 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:44.422 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:44.422 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:44.423 [print] Beheer PDOK
57
* print operateson
0
05:04:44.423 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76541ebb-a554-4540-a017-399d4bb4a860#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:44.424 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:44.425 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:44.426 [print] "true";"true"
76
* eval db.writeln('"037e55bd-a1dc-4fde-adfe-4610d3a3d5cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"037e55bd-a1dc-4fde-adfe-4610d3a3d5cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"037e55bd-a1dc-4fde-adfe-4610d3a3d5cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.234:82] 13e4dff0-1e80-11e2-81c1-0800200c9a66
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:43.947 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '13e4dff0-1e80-11e2-81c1-0800200c9a66'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '13e4dff0-1e80-11e2-81c1-0800200c9a66'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:44.503 [print] https://www.gdngeoservices.nl/inspire/downloads/services.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:44.504 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:44.504 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:44.504 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:44.505 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
05:04:44.505 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=11a292bd-9022-4a9f-b1bf-02f5c89ad74a&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=80630ee7-3a15-4ea0-bdc0-a8aebfa2f204&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:44.506 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:44.507 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:44.508 [print] "true";"true"
76
* eval db.writeln('"13e4dff0-1e80-11e2-81c1-0800200c9a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"13e4dff0-1e80-11e2-81c1-0800200c9a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"13e4dff0-1e80-11e2-81c1-0800200c9a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.235:82] 54122631-d343-40be-9c28-e44626b37a0e
ms: 591
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:44.053 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '54122631-d343-40be-9c28-e44626b37a0e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
575
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '54122631-d343-40be-9c28-e44626b37a0e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:44.636 [print] https://service.pdok.nl/cbs/hh/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:44.637 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:44.638 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:44.639 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:44.640 [print] Beheer PDOK
57
* print operateson
0
05:04:44.640 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=12bb57cd-73e0-41ba-a1e9-6d986b9109d3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:44.642 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:44.643 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:44.644 [print] "true";"true"
76
* eval db.writeln('"54122631-d343-40be-9c28-e44626b37a0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"54122631-d343-40be-9c28-e44626b37a0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"54122631-d343-40be-9c28-e44626b37a0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.236:82] fe4b36d5-8f69-403f-b084-ce010a4ae3b2
ms: 602
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:44.082 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'fe4b36d5-8f69-403f-b084-ce010a4ae3b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
589
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fe4b36d5-8f69-403f-b084-ce010a4ae3b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:44.678 [print] https://service.pdok.nl/rvo/natura2000/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:44.679 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:44.679 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:44.680 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:44.680 [print] Beheer PDOK
57
* print operateson
0
05:04:44.680 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8829e5dd-c861-4639-a6c8-fdbb6e3440d2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:44.682 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:44.682 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:44.683 [print] "true";"true"
76
* eval db.writeln('"fe4b36d5-8f69-403f-b084-ce010a4ae3b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"fe4b36d5-8f69-403f-b084-ce010a4ae3b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"fe4b36d5-8f69-403f-b084-ce010a4ae3b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.237:82] 1512b29e-80d4-4677-bcae-a3f9f82a223d
ms: 584
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:44.429 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1512b29e-80d4-4677-bcae-a3f9f82a223d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
560
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1512b29e-80d4-4677-bcae-a3f9f82a223d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:44.998 [print] https://service.pdok.nl/brt/top10nl/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:45.000 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:45.001 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:45.001 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:45.002 [print] Beheer PDOK
57
* print operateson
6
05:04:45.008 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=29d5310f-dd0d-45ba-abad-b4ffc6b8785f&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:04:45.010 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:45.011 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:45.012 [print] "true";"true"
76
* eval db.writeln('"1512b29e-80d4-4677-bcae-a3f9f82a223d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1512b29e-80d4-4677-bcae-a3f9f82a223d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"1512b29e-80d4-4677-bcae-a3f9f82a223d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.238:82] 88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6
ms: 623
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:44.511 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
598
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6'
12
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:45.128 [print] https://service.pdok.nl/kadaster/hy/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:04:45.129 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:45.129 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:45.129 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:45.130 [print] Beheer PDOK
57
* print operateson
0
05:04:45.130 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:45.131 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:45.132 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:45.134 [print] "true";"true"
76
* eval db.writeln('"88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.239:82] bb85e473-c04a-42a6-9fdc-f0bb0239327e
ms: 590
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:44.647 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bb85e473-c04a-42a6-9fdc-f0bb0239327e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
575
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bb85e473-c04a-42a6-9fdc-f0bb0239327e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:45.230 [print] https://service.pdok.nl/kadaster/gebouwen/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:45.231 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:45.232 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:45.232 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:04:45.234 [print] Beheer PDOK
57
* print operateson
0
05:04:45.235 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b4ae622c-6201-49d8-bd2e-f7fce9206a1e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:45.236 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:45.237 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:45.237 [print] "true";"true"
76
* eval db.writeln('"bb85e473-c04a-42a6-9fdc-f0bb0239327e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bb85e473-c04a-42a6-9fdc-f0bb0239327e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bb85e473-c04a-42a6-9fdc-f0bb0239327e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.240:82] e27e61d8-25b1-45ee-a2df-071312ba8a69
ms: 588
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:44.686 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e27e61d8-25b1-45ee-a2df-071312ba8a69'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
570
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e27e61d8-25b1-45ee-a2df-071312ba8a69'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:45.264 [print] https://geodata.nationaalgeoregister.nl/rws/kaderrichtlijnwateractueel/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:45.265 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:45.266 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:45.267 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:45.268 [print] Beheer PDOK
57
* print operateson
1
05:04:45.269 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=622a632a-c57b-44a2-83a4-e51223d5f15g#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=2e31680f-68b5-4ff3-94a4-9c24109ffd5e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krw-f7bb2351-9788-42ea-a58b-a5ee1842304e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krw-782cab20-8328-45f1-a9b2-c27d07c14066#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:45.271 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:45.272 [print] "Technical Guidance for the implementation of INSPIRE Download Services 3.0";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:45.273 [print] "true";"true";"true"
76
* eval db.writeln('"e27e61d8-25b1-45ee-a2df-071312ba8a69","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e27e61d8-25b1-45ee-a2df-071312ba8a69","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e27e61d8-25b1-45ee-a2df-071312ba8a69","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.241:82] 88a337a9-bed3-4d79-80fa-ff4b45990d7d
ms: 599
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:45.016 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '88a337a9-bed3-4d79-80fa-ff4b45990d7d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
586
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '88a337a9-bed3-4d79-80fa-ff4b45990d7d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:45.610 [print] https://service.pdok.nl/cbs/wijkenbuurten/2020/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:45.611 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:45.612 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:45.612 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:45.612 [print] Beheer PDOK
57
* print operateson
0
05:04:45.613 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f1859b4d-93be-4fc8-9e91-0ecc2fa0f3b3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:45.614 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:45.614 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:45.615 [print] "true";"true"
76
* eval db.writeln('"88a337a9-bed3-4d79-80fa-ff4b45990d7d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"88a337a9-bed3-4d79-80fa-ff4b45990d7d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"88a337a9-bed3-4d79-80fa-ff4b45990d7d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.242:82] 68a7e4c1-0073-4a1a-a6df-084d2badf45a
ms: 593
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:45.138 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68a7e4c1-0073-4a1a-a6df-084d2badf45a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
570
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68a7e4c1-0073-4a1a-a6df-084d2badf45a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:45.716 [print] https://service.pdok.nl/cbs/wijkenbuurten/2019/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:45.717 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:45.718 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:45.718 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:45.719 [print] Beheer PDOK
57
* print operateson
0
05:04:45.720 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5c37d29a-006d-4136-8989-adfc35a1d4a7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
7
05:04:45.728 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:45.729 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:45.730 [print] "true";"true"
76
* eval db.writeln('"68a7e4c1-0073-4a1a-a6df-084d2badf45a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"68a7e4c1-0073-4a1a-a6df-084d2badf45a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"68a7e4c1-0073-4a1a-a6df-084d2badf45a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.243:82] d84b0a71-4460-4e16-8a7e-5507f2e6bcbf
ms: 569
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:45.240 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd84b0a71-4460-4e16-8a7e-5507f2e6bcbf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
553
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd84b0a71-4460-4e16-8a7e-5507f2e6bcbf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:45.801 [print] https://service.pdok.nl/bzk/bro-grondwaterspiegeldiepte/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:45.802 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:45.803 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:45.804 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:45.805 [print] Beheer PDOK
57
* print operateson
0
05:04:45.805 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b756dabe-a331-42cd-b45e-f61828ee4534#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:45.807 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:45.808 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:45.809 [print] "true";"true"
76
* eval db.writeln('"d84b0a71-4460-4e16-8a7e-5507f2e6bcbf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d84b0a71-4460-4e16-8a7e-5507f2e6bcbf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d84b0a71-4460-4e16-8a7e-5507f2e6bcbf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.244:82] 0017219b-fb75-47aa-a6bf-496f2514e545
ms: 606
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:45.281 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0017219b-fb75-47aa-a6bf-496f2514e545'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
592
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0017219b-fb75-47aa-a6bf-496f2514e545'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:45.881 [print] https://service.pdok.nl/provincies/aardkundige-waarden/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:45.882 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:45.883 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:45.883 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:45.884 [print] Beheer PDOK
57
* print operateson
0
05:04:45.884 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f002bfc5-7d87-46b6-819e-8415422b65c9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:45.885 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:45.886 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:45.887 [print] "true";"true"
76
* eval db.writeln('"0017219b-fb75-47aa-a6bf-496f2514e545","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"0017219b-fb75-47aa-a6bf-496f2514e545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0017219b-fb75-47aa-a6bf-496f2514e545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.245:82] 7358a8bc-42db-4eeb-9b3e-a081f7803b45
ms: 608
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:45.618 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
2
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7358a8bc-42db-4eeb-9b3e-a081f7803b45'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
583
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7358a8bc-42db-4eeb-9b3e-a081f7803b45'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
11
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:46.221 [print] https://service.pdok.nl/kadaster/au/atom/v2_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:46.222 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:46.222 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:46.222 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:46.223 [print] Beheer PDOK
57
* print operateson
0
05:04:46.223 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7dd1fd45-ace5-41e0-93a6-64e3be231717#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:46.225 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:46.225 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:46.226 [print] "true";"true"
76
* eval db.writeln('"7358a8bc-42db-4eeb-9b3e-a081f7803b45","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7358a8bc-42db-4eeb-9b3e-a081f7803b45","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7358a8bc-42db-4eeb-9b3e-a081f7803b45","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.246:82] 93c8762c-4cbb-42b0-9b02-89ef902e8880
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:45.734 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '93c8762c-4cbb-42b0-9b02-89ef902e8880'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
547
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '93c8762c-4cbb-42b0-9b02-89ef902e8880'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:46.289 [print] https://service.pdok.nl/provincies/ps/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:46.290 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:46.291 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:46.291 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:46.291 [print] Beheer PDOK
57
* print operateson
0
05:04:46.291 [print] https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=49ab8bee-b467-486a-96ca-b950443c453a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:46.293 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:46.293 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:46.294 [print] "true";"true"
76
* eval db.writeln('"93c8762c-4cbb-42b0-9b02-89ef902e8880","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"93c8762c-4cbb-42b0-9b02-89ef902e8880","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"93c8762c-4cbb-42b0-9b02-89ef902e8880","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.247:82] 8fb3a06d-af1a-4da9-a769-41edf3591805
ms: 581
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:45.813 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8fb3a06d-af1a-4da9-a769-41edf3591805'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
567
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8fb3a06d-af1a-4da9-a769-41edf3591805'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:46.389 [print] https://service.pdok.nl/provincies/stiltegebieden/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:46.390 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:46.390 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:46.391 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:46.391 [print] Beheer PDOK
57
* print operateson
0
05:04:46.391 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:46.393 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:46.393 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:46.394 [print] "true";"true"
76
* eval db.writeln('"8fb3a06d-af1a-4da9-a769-41edf3591805","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8fb3a06d-af1a-4da9-a769-41edf3591805","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8fb3a06d-af1a-4da9-a769-41edf3591805","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.248:82] 15d2aa2a-1e55-4ca4-986b-0d12768675a1
ms: 581
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:45.890 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '15d2aa2a-1e55-4ca4-986b-0d12768675a1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
563
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '15d2aa2a-1e55-4ca4-986b-0d12768675a1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:46.463 [print] https://service.pdok.nl/provincies/natuurnetwerk-nederland/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:46.464 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:46.465 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:46.465 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:46.466 [print] Beheer PDOK
57
* print operateson
1
05:04:46.467 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c7d8d77b-8c47-4309-8c58-9b12b086407f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:46.468 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:46.470 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:46.471 [print] "true";"true"
76
* eval db.writeln('"15d2aa2a-1e55-4ca4-986b-0d12768675a1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"15d2aa2a-1e55-4ca4-986b-0d12768675a1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"15d2aa2a-1e55-4ca4-986b-0d12768675a1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.249:82] 9ad3f0c0-9e2c-4d44-a467-b57920aa512f
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:46.229 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9ad3f0c0-9e2c-4d44-a467-b57920aa512f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
560
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9ad3f0c0-9e2c-4d44-a467-b57920aa512f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:46.797 [print] https://geodata.nationaalgeoregister.nl/hwh/eenheden/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:46.798 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:46.799 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:46.799 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:46.800 [print] Beheer PDOK
57
* print operateson
0
05:04:46.800 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d4ec7e6-50ae-4c71-bd20-5b9211e2135f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:46.801 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:46.802 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:46.803 [print] "true";"true"
76
* eval db.writeln('"9ad3f0c0-9e2c-4d44-a467-b57920aa512f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9ad3f0c0-9e2c-4d44-a467-b57920aa512f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9ad3f0c0-9e2c-4d44-a467-b57920aa512f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.250:82] 52d0313e-0d2b-44b4-b51e-d9e504307f70
ms: 601
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:46.297 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '52d0313e-0d2b-44b4-b51e-d9e504307f70'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
585
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '52d0313e-0d2b-44b4-b51e-d9e504307f70'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:46.891 [print] https://service.pdok.nl/bzk/bro-environmental-monitoring-facilities/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:46.892 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:46.893 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:46.893 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:46.894 [print] Beheer PDOK
57
* print operateson
0
05:04:46.894 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:46.896 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:46.897 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:46.898 [print] "true";"true"
76
* eval db.writeln('"52d0313e-0d2b-44b4-b51e-d9e504307f70","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"52d0313e-0d2b-44b4-b51e-d9e504307f70","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"52d0313e-0d2b-44b4-b51e-d9e504307f70","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.251:82] dc9fbc85-1263-4a1b-b001-7be701a6039e
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:46.397 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dc9fbc85-1263-4a1b-b001-7be701a6039e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dc9fbc85-1263-4a1b-b001-7be701a6039e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:46.962 [print] https://service.pdok.nl/kadaster/plu/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:46.963 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:46.963 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:46.964 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:46.964 [print] Beheer PDOK
57
* print operateson
0
05:04:46.964 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a36#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:46.966 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:46.966 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:46.967 [print] "true";"true"
76
* eval db.writeln('"dc9fbc85-1263-4a1b-b001-7be701a6039e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dc9fbc85-1263-4a1b-b001-7be701a6039e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dc9fbc85-1263-4a1b-b001-7be701a6039e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.252:82] f38ea40d-9029-465c-9db2-c8a3099e21a2
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:46.476 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f38ea40d-9029-465c-9db2-c8a3099e21a2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f38ea40d-9029-465c-9db2-c8a3099e21a2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:47.033 [print] https://service.pdok.nl/provincies/wet-ammoniak-veehouderij-gebieden/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:47.033 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:47.034 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:47.035 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:47.036 [print] Beheer PDOK
57
* print operateson
0
05:04:47.036 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:47.037 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:47.038 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:47.039 [print] "true";"true"
76
* eval db.writeln('"f38ea40d-9029-465c-9db2-c8a3099e21a2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f38ea40d-9029-465c-9db2-c8a3099e21a2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f38ea40d-9029-465c-9db2-c8a3099e21a2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.253:82] 91b1f8ca-63a0-4ce6-b7e1-456ee6945638
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:46.806 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '91b1f8ca-63a0-4ce6-b7e1-456ee6945638'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '91b1f8ca-63a0-4ce6-b7e1-456ee6945638'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:47.362 [print] https://service.pdok.nl/rvo/schelpdierpercelen/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:47.363 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:47.363 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:47.363 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:47.364 [print] Beheer PDOK
57
* print operateson
0
05:04:47.364 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b4e95a-12d7-4c74-933c-cb267cfe0bcf#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:47.366 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:47.366 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:47.367 [print] "true";"true"
76
* eval db.writeln('"91b1f8ca-63a0-4ce6-b7e1-456ee6945638","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"91b1f8ca-63a0-4ce6-b7e1-456ee6945638","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"91b1f8ca-63a0-4ce6-b7e1-456ee6945638","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.254:82] 80acf20e-66fd-4276-b218-7a045699245a
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:46.901 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '80acf20e-66fd-4276-b218-7a045699245a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
555
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '80acf20e-66fd-4276-b218-7a045699245a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
3
45
* print connectUrl
0
05:04:47.467 [print] https://service.pdok.nl/rws/geluidbelasting/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:47.468 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:47.468 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:47.468 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:47.469 [print] Beheer PDOK
57
* print operateson
0
05:04:47.469 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=undefined#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9b583730-e750-485a-9c0c-39bf9be72cf8#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:47.471 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:47.472 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:47.472 [print] "true";"true"
76
* eval db.writeln('"80acf20e-66fd-4276-b218-7a045699245a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"80acf20e-66fd-4276-b218-7a045699245a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"80acf20e-66fd-4276-b218-7a045699245a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.255:82] fbe544b6-6e6f-43a0-80b9-ced1df78c434
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:46.970 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'fbe544b6-6e6f-43a0-80b9-ced1df78c434'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
544
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fbe544b6-6e6f-43a0-80b9-ced1df78c434'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:47.524 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:47.525 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:47.526 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:47.527 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:47.528 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
1
05:04:47.528 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ad6caa40-89ab-47e3-85ab-3f8e32024a71#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:47.530 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:47.531 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:47.533 [print] "false";"false"
76
* eval db.writeln('"fbe544b6-6e6f-43a0-80b9-ced1df78c434","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"fbe544b6-6e6f-43a0-80b9-ced1df78c434","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"fbe544b6-6e6f-43a0-80b9-ced1df78c434","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.256:82] 37308f90-e619-4b62-ae9e-e656bb3f1649
ms: 582
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:47.043 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '37308f90-e619-4b62-ae9e-e656bb3f1649'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
568
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '37308f90-e619-4b62-ae9e-e656bb3f1649'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:47.619 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:47.620 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:47.621 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:47.621 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:47.622 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:04:47.622 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:47.623 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:47.624 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:47.625 [print] "false";"false"
76
* eval db.writeln('"37308f90-e619-4b62-ae9e-e656bb3f1649","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"37308f90-e619-4b62-ae9e-e656bb3f1649","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"37308f90-e619-4b62-ae9e-e656bb3f1649","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.257:82] 72f30ca1-3b80-4020-b9ed-301b1a88df39
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:47.370 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '72f30ca1-3b80-4020-b9ed-301b1a88df39'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '72f30ca1-3b80-4020-b9ed-301b1a88df39'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:47.926 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:47.927 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:47.927 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:47.927 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:47.928 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:04:47.928 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=588a4cb1-b442-4ac1-87e4-40401e353166#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:47.929 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:47.930 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:47.931 [print] "false";"false"
76
* eval db.writeln('"72f30ca1-3b80-4020-b9ed-301b1a88df39","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"72f30ca1-3b80-4020-b9ed-301b1a88df39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"72f30ca1-3b80-4020-b9ed-301b1a88df39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.258:82] f59357eb-185f-42a5-b465-90bfa6e3e416
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:47.476 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f59357eb-185f-42a5-b465-90bfa6e3e416'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f59357eb-185f-42a5-b465-90bfa6e3e416'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:48.032 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:48.033 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:48.033 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:48.034 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:48.035 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:04:48.035 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=32a21114-8694-40ce-ab76-9dcd885c7861#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:48.036 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:48.037 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:48.038 [print] "false";"false"
76
* eval db.writeln('"f59357eb-185f-42a5-b465-90bfa6e3e416","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f59357eb-185f-42a5-b465-90bfa6e3e416","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f59357eb-185f-42a5-b465-90bfa6e3e416","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.259:82] 252db472-201d-430b-9c55-4d37563787bc
ms: 595
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:47.536 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '252db472-201d-430b-9c55-4d37563787bc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
572
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '252db472-201d-430b-9c55-4d37563787bc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
10
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:04:48.125 [print] https://service.pdok.nl/rws/vaarwegmarkeringennld/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:48.126 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:48.127 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:48.127 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:48.128 [print] Beheer PDOK
57
* print operateson
0
05:04:48.128 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=be1b1514-8d1f-48e1-9624-fee9b784138b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:48.129 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:48.130 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:48.131 [print] "true";"true"
76
* eval db.writeln('"252db472-201d-430b-9c55-4d37563787bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"252db472-201d-430b-9c55-4d37563787bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"252db472-201d-430b-9c55-4d37563787bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.260:82] 7dc30aed-0940-4e69-b34c-9f24b34078eb
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:47.628 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7dc30aed-0940-4e69-b34c-9f24b34078eb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7dc30aed-0940-4e69-b34c-9f24b34078eb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:48.192 [print] https://inspire.rivm.nl/geoserver/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:48.192 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:48.193 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:48.193 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:48.194 [print] RIVM
57
* print operateson
0
05:04:48.194 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f8d840bc-18df-4449-b797-b9adcb81d3ec
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
3
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:48.198 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:48.199 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:48.200 [print] "true";"true";"true"
76
* eval db.writeln('"7dc30aed-0940-4e69-b34c-9f24b34078eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7dc30aed-0940-4e69-b34c-9f24b34078eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7dc30aed-0940-4e69-b34c-9f24b34078eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.261:82] 1e2cb7d4-934a-437a-809e-fda67b4a8824
ms: 593
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:47.934 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1e2cb7d4-934a-437a-809e-fda67b4a8824'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
580
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1e2cb7d4-934a-437a-809e-fda67b4a8824'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:48.522 [print] https://inspire.caris.nl/geoserver/eez/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:48.523 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:48.524 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:48.524 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:48.525 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
05:04:48.525 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e8b84fae-00b3-49c1-80c1-df8f69f64e8c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:48.526 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:48.527 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:48.527 [print] "true";"true"
76
* eval db.writeln('"1e2cb7d4-934a-437a-809e-fda67b4a8824","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1e2cb7d4-934a-437a-809e-fda67b4a8824","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1e2cb7d4-934a-437a-809e-fda67b4a8824","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.262:82] a301ddc7-c26f-42d8-b367-509ae5ae47d0
ms: 648
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:48.041 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a301ddc7-c26f-42d8-b367-509ae5ae47d0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
634
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a301ddc7-c26f-42d8-b367-509ae5ae47d0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:48.683 [print] https:\/\/service.pdok.nl\/hwh\/luchtfotorgb\/wms\/v1_0?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:48.684 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:48.684 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:48.684 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:48.685 [print] Beheer PDOK
57
* print operateson
0
05:04:48.685 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=74aca3eb-c38b-4214-9537-e0abc69e11b5#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5b274449-b6c2-4672-a32f-e0bd40975a53#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=df15af6e-0d21-4437-a69f-802be3479bba#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=64ff8561-5c56-4cc1-ae0e-94366fb70b7e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4e2bb25e-a5a9-43a7-986a-40e7aea32e38#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:48.687 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:48.688 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:48.688 [print] "true";"true"
76
* eval db.writeln('"a301ddc7-c26f-42d8-b367-509ae5ae47d0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a301ddc7-c26f-42d8-b367-509ae5ae47d0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a301ddc7-c26f-42d8-b367-509ae5ae47d0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.263:82] 47470f53-e0aa-45f3-ada3-ddf130dd54af
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:48.134 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '47470f53-e0aa-45f3-ada3-ddf130dd54af'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '47470f53-e0aa-45f3-ada3-ddf130dd54af'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:48.698 [print] https://service.pdok.nl/cbs/wb2021/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:04:48.698 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:48.699 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:48.699 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:48.700 [print] Beheer PDOK
57
* print operateson
0
05:04:48.700 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:48.701 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:48.702 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
05:04:48.704 [print] "true";"true"
76
* eval db.writeln('"47470f53-e0aa-45f3-ada3-ddf130dd54af","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"47470f53-e0aa-45f3-ada3-ddf130dd54af","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"47470f53-e0aa-45f3-ada3-ddf130dd54af","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.264:82] 181b54ed-14d2-4fda-bae7-747972340f2f
ms: 583
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:48.203 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '181b54ed-14d2-4fda-bae7-747972340f2f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
571
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '181b54ed-14d2-4fda-bae7-747972340f2f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:48.781 [print] https://service.pdok.nl/provincies/provinciale-monumenten/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:48.782 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:48.782 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:48.782 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:48.783 [print] Beheer PDOK
57
* print operateson
0
05:04:48.783 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ca94a0cb-7561-4a10-a7d6-b840e56c33ff#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:48.784 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:48.785 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:48.786 [print] "true";"true"
76
* eval db.writeln('"181b54ed-14d2-4fda-bae7-747972340f2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"181b54ed-14d2-4fda-bae7-747972340f2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"181b54ed-14d2-4fda-bae7-747972340f2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.265:82] bfcc588f-9393-4c70-b989-d9e92ac2f493
ms: 587
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:48.531 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bfcc588f-9393-4c70-b989-d9e92ac2f493'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
560
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bfcc588f-9393-4c70-b989-d9e92ac2f493'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
12
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:49.111 [print] https:\/\/geodata.nationaalgeoregister.nl\/ahn3\/wcs?&service=wcs&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:49.112 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:49.112 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:49.113 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:49.114 [print] Beheer PDOK
57
* print operateson
0
05:04:49.114 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931c#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931c#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:49.116 [print] https://inspire.ec.europa.eu/documents/technical-guidance-implementation-inspire-download-services
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:49.117 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"de service is conform";"conform specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:49.118 [print] "true";"true"
76
* eval db.writeln('"bfcc588f-9393-4c70-b989-d9e92ac2f493","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bfcc588f-9393-4c70-b989-d9e92ac2f493","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bfcc588f-9393-4c70-b989-d9e92ac2f493","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.266:82] c56433ca-35f2-4aaf-8bfa-35d8e0e52dda
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:48.699 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c56433ca-35f2-4aaf-8bfa-35d8e0e52dda'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c56433ca-35f2-4aaf-8bfa-35d8e0e52dda'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:49.267 [print] https://inspire.rivm.nl/geoserver/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:49.268 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:49.268 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:49.268 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:49.269 [print] RIVM
57
* print operateson
0
05:04:49.269 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=08b27bf0-e34a-4b30-9eac-5edadfb6a288
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:49.270 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:49.271 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:49.272 [print] "true";"true";"true"
76
* eval db.writeln('"c56433ca-35f2-4aaf-8bfa-35d8e0e52dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c56433ca-35f2-4aaf-8bfa-35d8e0e52dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c56433ca-35f2-4aaf-8bfa-35d8e0e52dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.267:82] c21c6bf5-8899-4b46-8986-0f65eca05ed0
ms: 617
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:48.706 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c21c6bf5-8899-4b46-8986-0f65eca05ed0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
604
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c21c6bf5-8899-4b46-8986-0f65eca05ed0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:49.319 [print] https://geodata.nationaalgeoregister.nl/rws/richtlijnstedelijkafvalwater2015/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:49.319 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:49.320 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:49.320 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:49.320 [print] Beheer PDOK
57
* print operateson
0
05:04:49.321 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e1#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:49.322 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:49.323 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:49.324 [print] "true";"true"
76
* eval db.writeln('"c21c6bf5-8899-4b46-8986-0f65eca05ed0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c21c6bf5-8899-4b46-8986-0f65eca05ed0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c21c6bf5-8899-4b46-8986-0f65eca05ed0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.268:82] 9c4862c3-0bab-49c3-bc2f-ac5486826766
ms: 639
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:48.793 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9c4862c3-0bab-49c3-bc2f-ac5486826766'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
596
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c4862c3-0bab-49c3-bc2f-ac5486826766'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
3
34
* def title = get response //citation/CI_Citation/title/CharacterString
3
35
* def email = get response //electronicMailAddress/CharacterString
3
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
3
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
3
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
2
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
2
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:49.414 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsoorten\/v2\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
05:04:49.416 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
0
05:04:49.418 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:49.418 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
3
56
* print organisationpath
0
05:04:49.421 [print] Beheer PDOK
57
* print operateson
0
05:04:49.421 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=28c4780a-1a44-4376-b283-14a50a481729#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
3
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
3
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:49.426 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
3
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:49.429 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
3
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:49.432 [print] "true";"true"
76
* eval db.writeln('"9c4862c3-0bab-49c3-bc2f-ac5486826766","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9c4862c3-0bab-49c3-bc2f-ac5486826766","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9c4862c3-0bab-49c3-bc2f-ac5486826766","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.269:82] 9ff1a13c-d1e0-4150-8523-91cb489ae1a4
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:49.121 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9ff1a13c-d1e0-4150-8523-91cb489ae1a4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9ff1a13c-d1e0-4150-8523-91cb489ae1a4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:49.680 [print] https://geodata.nationaalgeoregister.nl/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:49.681 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:49.682 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:49.682 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:49.683 [print] Beheer PDOK
57
* print operateson
0
05:04:49.683 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=710c381c-ab2d-45d5-a45d-af2eba811e5f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a9b7026e-0a81-4813-93bd-ba49e6f28502#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=00d8c7c8-98ff-4b06-8f53-b44216e6e75c#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=701d4eb8-8aae-4708-bba5-3edf6987676d#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=831f7bd7-c2ae-4336-bd2f-47ab20d7cdb7#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=abaf1e22-55aa-4a11-a855-7ac963e4a82b#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=e536d943-ecff-4d7a-9500-cc31a263a6af#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=c935f2ab-9b65-4dc4-94a0-73aeb840a941#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=81ff84ec-42a4-4481-840b-12713bbb5d38#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=af0c582f-9e6b-46e6-865a-fc3a2d5289b9#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3eebf700-5abf-42e4-826c-03cfb497e366#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9d9f1738-aced-47c9-aaa0-c62474a2dcfb#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4961d305-fbb5-426a-9ba3-53e1ca5f3b18#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3229e4d7-4bcd-4b94-819d-8e62de69ce2e#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:49.684 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:49.685 [print] "Technical Guidance for the implementation of INSPIRE Download Services 3.0";"notEvaluated";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
5
05:04:49.691 [print] "false";"true";"true"
76
* eval db.writeln('"9ff1a13c-d1e0-4150-8523-91cb489ae1a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9ff1a13c-d1e0-4150-8523-91cb489ae1a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"9ff1a13c-d1e0-4150-8523-91cb489ae1a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.270:82] b5ee6914-04bd-4c7e-a180-242371ae40d9
ms: 588
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:49.275 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b5ee6914-04bd-4c7e-a180-242371ae40d9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b5ee6914-04bd-4c7e-a180-242371ae40d9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
11
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:49.852 [print] https://inspire.rivm.nl/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:49.853 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:49.854 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:49.855 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:49.856 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
2
05:04:49.856 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=50a2c5e6-c8e7-425d-854e-26f578196bc9#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=08b27bf0-e34a-4b30-9eac-5edadfb6a288#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ad6caa40-89ab-47e3-85ab-3f8e32024a71#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f8d840bc-18df-4449-b797-b9adcb81d3ec#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d3c9efd6-fca7-49d6-92bb-5f507abece90#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=32a21114-8694-40ce-ab76-9dcd885c7861#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d24ccb35-e9d2-41bf-b231-43083fc0c76d#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=36a7e8cb-8300-4602-93d2-135943365a6f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=b3f66964-a8c1-456f-9799-9cafca2cb7b1#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=e1e99000-ec47-4e9f-84a5-adad24fef0dc#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d9baa847-4652-4588-abe1-0b050f40f27f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=2cc2c30c-91b8-412a-a060-e84d25272581#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:49.860 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:49.861 [print] "Technical Guidance for the implementation of INSPIRE Download Services 3.0";"notEvaluated";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:49.862 [print] "false";"true";"true"
76
* eval db.writeln('"b5ee6914-04bd-4c7e-a180-242371ae40d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"b5ee6914-04bd-4c7e-a180-242371ae40d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"b5ee6914-04bd-4c7e-a180-242371ae40d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.271:82] cb13a608-3d78-4f79-ba60-be63ccd6e268
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:49.327 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cb13a608-3d78-4f79-ba60-be63ccd6e268'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cb13a608-3d78-4f79-ba60-be63ccd6e268'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:49.891 [print] https://service.pdok.nl/cbs/vk100/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:49.892 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:49.892 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:49.892 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:49.893 [print] Beheer PDOK
57
* print operateson
0
05:04:49.893 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:49.894 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:49.895 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:49.896 [print] "true";"true"
76
* eval db.writeln('"cb13a608-3d78-4f79-ba60-be63ccd6e268","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"cb13a608-3d78-4f79-ba60-be63ccd6e268","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cb13a608-3d78-4f79-ba60-be63ccd6e268","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.272:82] 5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0
ms: 560
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:49.435 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
547
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:49.990 [print] https://service.pdok.nl/provincies/zwemwater-provinciaal-rijkswateren/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:49.991 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:49.991 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:49.991 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:49.992 [print] Beheer PDOK
57
* print operateson
0
05:04:49.992 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:49.994 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:49.994 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:49.995 [print] "true";"true"
76
* eval db.writeln('"5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.273:82] e222648d-d19e-4a99-a67d-2af1c9aabd75
ms: 610
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:49.694 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e222648d-d19e-4a99-a67d-2af1c9aabd75'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
596
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e222648d-d19e-4a99-a67d-2af1c9aabd75'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:50.298 [print] https://service.pdok.nl/kadaster/cp/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:50.299 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:50.299 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:50.300 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:50.300 [print] Beheer PDOK
57
* print operateson
0
05:04:50.301 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e80ad426-1392-4349-9f80-14dae5f1bf57#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:50.302 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:50.303 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:50.303 [print] "true";"true"
76
* eval db.writeln('"e222648d-d19e-4a99-a67d-2af1c9aabd75","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e222648d-d19e-4a99-a67d-2af1c9aabd75","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"e222648d-d19e-4a99-a67d-2af1c9aabd75","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.274:82] 8eb296dd-0e1d-4ed9-be24-297149d770f8
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:49.866 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8eb296dd-0e1d-4ed9-be24-297149d770f8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
563
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8eb296dd-0e1d-4ed9-be24-297149d770f8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:50.436 [print] https://service.pdok.nl/cbs/bestandbodemgebruik/2015/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:50.437 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:50.438 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:50.438 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:50.439 [print] Beheer PDOK
57
* print operateson
0
05:04:50.439 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d3dd6d2-2d2b-4b5f-9e30-86e19ed77a56#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:50.441 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:50.442 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:50.442 [print] "true";"true"
76
* eval db.writeln('"8eb296dd-0e1d-4ed9-be24-297149d770f8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8eb296dd-0e1d-4ed9-be24-297149d770f8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8eb296dd-0e1d-4ed9-be24-297149d770f8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.275:82] 28e6b45e-7627-454d-99a0-4119bbe1678d
ms: 601
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:49.900 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '28e6b45e-7627-454d-99a0-4119bbe1678d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
589
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '28e6b45e-7627-454d-99a0-4119bbe1678d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:50.496 [print] https://service.pdok.nl/cbs/bestandbodemgebruik/2017/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:50.497 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:50.497 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:50.498 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:50.498 [print] Beheer PDOK
57
* print operateson
0
05:04:50.498 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9bf1ce1-5197-409e-b19e-340e50afafc4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:50.499 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:50.500 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:50.501 [print] "true";"true"
76
* eval db.writeln('"28e6b45e-7627-454d-99a0-4119bbe1678d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"28e6b45e-7627-454d-99a0-4119bbe1678d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"28e6b45e-7627-454d-99a0-4119bbe1678d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.276:82] ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f
ms: 594
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:49.998 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
565
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
16
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:50.587 [print] https://service.pdok.nl/provincies/begrenzingen-vergunde-ontgrondingsgebieden-zand-grindwinning/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:50.588 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:50.588 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:50.588 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:50.589 [print] Beheer PDOK
57
* print operateson
0
05:04:50.589 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=58e7dc38-a498-4852-b4ef-908f5baa9056#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:50.591 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:50.591 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:50.592 [print] "true";"true"
76
* eval db.writeln('"ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.277:82] d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507
ms: 604
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:50.307 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
591
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:50.906 [print] https://service.pdok.nl/rvo/invasieve-exoten/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:50.907 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:50.907 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:50.907 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:50.908 [print] Beheer PDOK
57
* print operateson
0
05:04:50.908 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3703b249-a0eb-484e-ba7a-10e31a55bcec#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:50.910 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:50.910 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:50.911 [print] "true";"true"
76
* eval db.writeln('"d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.278:82] 78155dcb-61fa-4c16-896f-637f5936ce6c
ms: 581
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:50.445 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '78155dcb-61fa-4c16-896f-637f5936ce6c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
567
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '78155dcb-61fa-4c16-896f-637f5936ce6c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:51.020 [print] https://service.pdok.nl/provincies/zwemwaterkwaliteit-provinciaal-rijkswateren/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:51.021 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:51.022 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:51.022 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:51.022 [print] Beheer PDOK
57
* print operateson
0
05:04:51.022 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=df5ee213-e1bd-433b-80f7-4ea20f493ca8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:51.024 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:51.024 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:51.025 [print] "true";"true"
76
* eval db.writeln('"78155dcb-61fa-4c16-896f-637f5936ce6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
2
77
* eval db.writeln('"78155dcb-61fa-4c16-896f-637f5936ce6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"78155dcb-61fa-4c16-896f-637f5936ce6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.279:82] 77971fa3-f869-4726-969a-482e0b1a8c5d
ms: 618
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:50.513 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '77971fa3-f869-4726-969a-482e0b1a8c5d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
604
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '77971fa3-f869-4726-969a-482e0b1a8c5d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:51.125 [print] https://www.gdngeoservices.nl/inspire/downloads/services.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:51.126 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:51.126 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:51.126 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:51.127 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
05:04:51.127 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=80630ee7-3a15-4ea0-bdc0-a8aebfa2f204&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:51.129 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:51.129 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:51.130 [print] "true";"true"
76
* eval db.writeln('"77971fa3-f869-4726-969a-482e0b1a8c5d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"77971fa3-f869-4726-969a-482e0b1a8c5d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"77971fa3-f869-4726-969a-482e0b1a8c5d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.280:82] 0fa448bb-332b-40b2-adab-13626b29bee6
ms: 635
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:50.596 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0fa448bb-332b-40b2-adab-13626b29bee6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
622
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0fa448bb-332b-40b2-adab-13626b29bee6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:51.226 [print] https://service.pdok.nl/kadaster/lu/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:51.227 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:51.228 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:51.228 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:51.229 [print] Beheer PDOK
57
* print operateson
0
05:04:51.229 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a88#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:51.230 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:51.231 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:51.231 [print] "true";"true"
76
* eval db.writeln('"0fa448bb-332b-40b2-adab-13626b29bee6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0fa448bb-332b-40b2-adab-13626b29bee6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0fa448bb-332b-40b2-adab-13626b29bee6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.281:82] 7c651e06-858e-4184-8de3-da9def9c6fd0
ms: 596
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:50.914 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7c651e06-858e-4184-8de3-da9def9c6fd0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
573
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7c651e06-858e-4184-8de3-da9def9c6fd0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:51.494 [print] https://service.pdok.nl/bzk/bro-bodemkaart/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:51.495 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:51.496 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:51.496 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:51.496 [print] Beheer PDOK
57
* print operateson
0
05:04:51.496 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ed960299-a147-4c1a-bc57-41ff83a2264f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:51.498 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
10
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:51.509 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:51.510 [print] "true";"true"
76
* eval db.writeln('"7c651e06-858e-4184-8de3-da9def9c6fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7c651e06-858e-4184-8de3-da9def9c6fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7c651e06-858e-4184-8de3-da9def9c6fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.282:82] b85d4a0a-c0f7-42f4-9316-b214d205ca38
ms: 583
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:51.030 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b85d4a0a-c0f7-42f4-9316-b214d205ca38'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
564
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b85d4a0a-c0f7-42f4-9316-b214d205ca38'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:51.603 [print] http://inspire.rdw.nl/www/download/rdw-inspire.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:51.604 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:51.605 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
2
05:04:51.606 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:51.607 [print] RDW
57
* print operateson
0
05:04:51.607 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fe2f9091-1962-4073-9e3b-3e4aeed488a5#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
3
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:51.611 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:51.612 [print] "Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Evaluated";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Gecontroleerd met INSPIRE verordening"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:51.613 [print] "true";"true"
76
* eval db.writeln('"b85d4a0a-c0f7-42f4-9316-b214d205ca38","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b85d4a0a-c0f7-42f4-9316-b214d205ca38","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b85d4a0a-c0f7-42f4-9316-b214d205ca38","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.283:82] d624bfd0-8f21-44c4-a22c-0f0877a539fc
ms: 587
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:51.133 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd624bfd0-8f21-44c4-a22c-0f0877a539fc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
574
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd624bfd0-8f21-44c4-a22c-0f0877a539fc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:51.715 [print] https://service.pdok.nl/provincies/geluidzones-rondom-vliegvelden/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:51.716 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:51.716 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:51.716 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:51.717 [print] Beheer PDOK
57
* print operateson
0
05:04:51.717 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=41023936-009d-48ec-a90d-c966895463c1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:51.719 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:51.719 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:51.720 [print] "true";"true"
76
* eval db.writeln('"d624bfd0-8f21-44c4-a22c-0f0877a539fc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d624bfd0-8f21-44c4-a22c-0f0877a539fc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d624bfd0-8f21-44c4-a22c-0f0877a539fc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.284:82] 101304f0-2cf2-4ce0-aa23-cd7e4000fbba
ms: 622
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:51.234 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '101304f0-2cf2-4ce0-aa23-cd7e4000fbba'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
609
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '101304f0-2cf2-4ce0-aa23-cd7e4000fbba'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:51.851 [print] https://service.pdok.nl/kadaster/sr/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:51.852 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:51.853 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:51.853 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:51.853 [print] Beheer PDOK
57
* print operateson
0
05:04:51.854 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:51.855 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:51.856 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:51.856 [print] "true";"true"
76
* eval db.writeln('"101304f0-2cf2-4ce0-aa23-cd7e4000fbba","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"101304f0-2cf2-4ce0-aa23-cd7e4000fbba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"101304f0-2cf2-4ce0-aa23-cd7e4000fbba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.285:82] 641a0f48-872b-4470-b130-e3d28e6bfdfb
ms: 615
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:51.513 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '641a0f48-872b-4470-b130-e3d28e6bfdfb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
601
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '641a0f48-872b-4470-b130-e3d28e6bfdfb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:52.123 [print] https://geodata.nationaalgeoregister.nl/rws/kaderrichtlijnmarienestrategie2018/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:52.123 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:52.124 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:52.124 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:52.125 [print] Beheer PDOK
57
* print operateson
0
05:04:52.125 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krm-a905-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krm-a905-9d8e-4758-83fa-28b057f185e4#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:52.126 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:52.127 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:52.128 [print] "true";"true"
76
* eval db.writeln('"641a0f48-872b-4470-b130-e3d28e6bfdfb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"641a0f48-872b-4470-b130-e3d28e6bfdfb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"641a0f48-872b-4470-b130-e3d28e6bfdfb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.286:82] 0d7ca7bc-99de-4539-af33-70b206f29355
ms: 642
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:51.616 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0d7ca7bc-99de-4539-af33-70b206f29355'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
629
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0d7ca7bc-99de-4539-af33-70b206f29355'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:52.252 [print] https://service.pdok.nl/kadaster/adressen/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:52.253 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:52.254 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:52.254 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:52.254 [print] Beheer PDOK
57
* print operateson
0
05:04:52.254 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76091be7-358a-4a44-8182-b4139c96c6a4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:52.256 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:52.257 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:52.257 [print] "true";"true"
76
* eval db.writeln('"0d7ca7bc-99de-4539-af33-70b206f29355","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0d7ca7bc-99de-4539-af33-70b206f29355","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0d7ca7bc-99de-4539-af33-70b206f29355","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.287:82] 46873d16-6835-48c4-b47f-134ab0cb31fa
ms: 626
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:51.723 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '46873d16-6835-48c4-b47f-134ab0cb31fa'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
604
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '46873d16-6835-48c4-b47f-134ab0cb31fa'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
9
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:52.343 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:52.344 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:52.344 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:52.345 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:52.345 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:04:52.345 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=50a2c5e6-c8e7-425d-854e-26f578196bc9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:52.347 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:52.348 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:52.348 [print] "false";"false"
76
* eval db.writeln('"46873d16-6835-48c4-b47f-134ab0cb31fa","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"46873d16-6835-48c4-b47f-134ab0cb31fa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"46873d16-6835-48c4-b47f-134ab0cb31fa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.288:82] 559f7f5b-44fc-4003-9fb5-4d8c9aff6060
ms: 600
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:51.859 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '559f7f5b-44fc-4003-9fb5-4d8c9aff6060'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
584
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '559f7f5b-44fc-4003-9fb5-4d8c9aff6060'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:52.452 [print] https://service.pdok.nl/kadaster/tn/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:04:52.453 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:52.454 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:52.454 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:52.455 [print] Beheer PDOK
57
* print operateson
0
05:04:52.455 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=6c06740d-058f-4a12-bb3f-bf68efd03d09#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3a7dd0a6-d130-4c4c-b0ba-24365cf036e2#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5951efa2-1ff3-4763-a966-a2f5497679ee#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8f45b8ef-0ce8-463a-9059-5efdcecb785c#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:52.457 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:52.458 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:52.459 [print] "true";"true"
76
* eval db.writeln('"559f7f5b-44fc-4003-9fb5-4d8c9aff6060","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"559f7f5b-44fc-4003-9fb5-4d8c9aff6060","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"559f7f5b-44fc-4003-9fb5-4d8c9aff6060","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.289:82] ef2a7962-8bb4-483f-ac78-851b619f357f
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:52.131 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ef2a7962-8bb4-483f-ac78-851b619f357f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
563
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ef2a7962-8bb4-483f-ac78-851b619f357f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:52.702 [print] https://services.rce.geovoorziening.nl/www/download/nl.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:52.703 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:52.703 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:52.704 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:52.704 [print] Rijksdienst voor het Cultureel Erfgoed
57
* print operateson
0
05:04:52.704 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6f84efeb-fc1d-4565-a721-80735ea57dbd#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=4e2ef670-cddd-11dd-ad8b-0800200c9a66#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=88a3c1ae-902e-4efa-8663-ddd836101929#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:52.706 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:52.707 [print] "Nadere uitleg bij het al dan niet volledig voldoen aan de specificatie";"Open Search mechanisme van het Nationaal Georegister functioneert nog niet naar behoren."
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:52.708 [print] "true";"false"
76
* eval db.writeln('"ef2a7962-8bb4-483f-ac78-851b619f357f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ef2a7962-8bb4-483f-ac78-851b619f357f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ef2a7962-8bb4-483f-ac78-851b619f357f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.290:82] 5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5
ms: 584
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:52.260 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
571
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:52.839 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:52.839 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:52.840 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:52.840 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:52.841 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:04:52.841 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e1e99000-ec47-4e9f-84a5-adad24fef0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:52.842 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:52.843 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:52.844 [print] "false";"false"
76
* eval db.writeln('"5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.291:82] a931e334-b752-4935-8a98-00eddc443789
ms: 575
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:52.352 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a931e334-b752-4935-8a98-00eddc443789'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a931e334-b752-4935-8a98-00eddc443789'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:52.922 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:52.922 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:52.923 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:52.923 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:52.924 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:04:52.924 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:52.925 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:52.926 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:52.927 [print] "false";"false"
76
* eval db.writeln('"a931e334-b752-4935-8a98-00eddc443789","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a931e334-b752-4935-8a98-00eddc443789","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a931e334-b752-4935-8a98-00eddc443789","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.292:82] 01572637-b851-4cc3-b06a-56c1ae1115cc
ms: 606
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:52.463 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '01572637-b851-4cc3-b06a-56c1ae1115cc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
584
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '01572637-b851-4cc3-b06a-56c1ae1115cc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
9
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:53.063 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:53.064 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:53.065 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:53.065 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:53.066 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
05:04:53.066 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9baa847-4652-4588-abe1-0b050f40f27f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:53.067 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:53.068 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:53.069 [print] "false";"false"
76
* eval db.writeln('"01572637-b851-4cc3-b06a-56c1ae1115cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"01572637-b851-4cc3-b06a-56c1ae1115cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"01572637-b851-4cc3-b06a-56c1ae1115cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.293:82] 15c3c30f-0db2-4b3b-80f6-b990c8fc8225
ms: 664
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:52.711 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '15c3c30f-0db2-4b3b-80f6-b990c8fc8225'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
651
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '15c3c30f-0db2-4b3b-80f6-b990c8fc8225'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:53.370 [print] https://service.pdok.nl/hwh/hydrografie/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:53.371 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:53.372 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:53.372 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:53.372 [print] Beheer PDOK
57
* print operateson
0
05:04:53.372 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=07575774-57a1-4419-bab4-6c88fdeb02b2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:53.374 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:53.374 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:53.375 [print] "true";"true"
76
* eval db.writeln('"15c3c30f-0db2-4b3b-80f6-b990c8fc8225","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"15c3c30f-0db2-4b3b-80f6-b990c8fc8225","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"15c3c30f-0db2-4b3b-80f6-b990c8fc8225","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.294:82] a88b4ed1-49c1-4f91-991e-dc1cc7c575f7
ms: 605
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:52.847 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a88b4ed1-49c1-4f91-991e-dc1cc7c575f7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
588
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a88b4ed1-49c1-4f91-991e-dc1cc7c575f7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:53.443 [print] http:\/\/services.inspire-provincies.nl\/ProductionAndIndustrialFacilities\/services\/view_PF?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:53.444 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:53.445 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:53.446 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:53.447 [print] Interprovinciaal Overleg
57
* print operateson
1
05:04:53.448 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=8e986f37-74d7-4b6c-8026-87c960456423&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=afc450bd-65b3-4e59-b0fb-619869bf6ada&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:53.449 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:53.451 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services 3.1";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:53.452 [print] "false";"true";"true"
76
* eval db.writeln('"a88b4ed1-49c1-4f91-991e-dc1cc7c575f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a88b4ed1-49c1-4f91-991e-dc1cc7c575f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a88b4ed1-49c1-4f91-991e-dc1cc7c575f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.295:82] ddf33bff-8de3-4cca-b6f5-24d18daa502f
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:52.930 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ddf33bff-8de3-4cca-b6f5-24d18daa502f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ddf33bff-8de3-4cca-b6f5-24d18daa502f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:53.493 [print] https://geodata.nationaalgeoregister.nl/rws/kaderrichtlijnwater2015/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:53.493 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:53.494 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:53.494 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:53.495 [print] Beheer PDOK
57
* print operateson
0
05:04:53.495 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbeag#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbead#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:53.496 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:53.497 [print] "Technical Guidance for the implementation of INSPIRE Download Services 3.0";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:53.498 [print] "true";"true";"true"
76
* eval db.writeln('"ddf33bff-8de3-4cca-b6f5-24d18daa502f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ddf33bff-8de3-4cca-b6f5-24d18daa502f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ddf33bff-8de3-4cca-b6f5-24d18daa502f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.296:82] deb81ebe-c7a7-42ba-bc21-f07cd348c3e8
ms: 618
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:53.072 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'deb81ebe-c7a7-42ba-bc21-f07cd348c3e8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
599
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'deb81ebe-c7a7-42ba-bc21-f07cd348c3e8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
5
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:53.684 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw-inspire?request=GetCapabilities&Service=CSW&Version=2.0.1
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:53.685 [print] OGC:CSW
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:53.685 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:53.685 [print] OGC:CSW
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:53.686 [print] Beheer PDOK
57
* print operateson
0
05:04:53.686 [print] #notpresent
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:53.688 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-discovery-services-0"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:53.689 [print] "Deze service is conform INSPIRE richtlijn betreffende netwerkdiensten";"Deze service is conform INSPIRE richtlijn betreffende diensten met betrekking tot ruimtelijke gegevens";"Deze service is conform de Technical Guidance for INSPIRE Discovery Services"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:53.690 [print] "true";"true";"true"
76
* eval db.writeln('"deb81ebe-c7a7-42ba-bc21-f07cd348c3e8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"deb81ebe-c7a7-42ba-bc21-f07cd348c3e8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"deb81ebe-c7a7-42ba-bc21-f07cd348c3e8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.297:82] 027e3f15-3b58-4570-97bb-779ce3ca947e
ms: 594
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:53.378 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
2
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '027e3f15-3b58-4570-97bb-779ce3ca947e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
579
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '027e3f15-3b58-4570-97bb-779ce3ca947e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:53.966 [print] https://service.pdok.nl/cbs/wijkenbuurten/2019/wfs/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:53.967 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:53.968 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:53.968 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:53.969 [print] Beheer PDOK
57
* print operateson
0
05:04:53.969 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5c37d29a-006d-4136-8989-adfc35a1d4a7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:53.970 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:53.971 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:53.972 [print] "true";"true"
76
* eval db.writeln('"027e3f15-3b58-4570-97bb-779ce3ca947e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"027e3f15-3b58-4570-97bb-779ce3ca947e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"027e3f15-3b58-4570-97bb-779ce3ca947e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.298:82] e264c1e4-90fe-4968-bbf2-7019f6095348
ms: 606
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:53.455 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e264c1e4-90fe-4968-bbf2-7019f6095348'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
593
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e264c1e4-90fe-4968-bbf2-7019f6095348'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:54.057 [print] https://service.pdok.nl/ienw/geluidskaartspoorwegenetmaal/wfs/v1_0?&request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:54.057 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:54.058 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:54.058 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:54.059 [print] Beheer PDOK
57
* print operateson
0
05:04:54.059 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c3c004ad-5387-4b00-a225-9afbcaa5d31b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:54.061 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:54.061 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:54.062 [print] "true";"true"
76
* eval db.writeln('"e264c1e4-90fe-4968-bbf2-7019f6095348","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e264c1e4-90fe-4968-bbf2-7019f6095348","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e264c1e4-90fe-4968-bbf2-7019f6095348","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.299:82] 1009c2a4-4dba-49a5-b643-914ba8b80b52
ms: 620
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:53.501 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1009c2a4-4dba-49a5-b643-914ba8b80b52'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
603
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1009c2a4-4dba-49a5-b643-914ba8b80b52'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:54.113 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:54.114 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:54.115 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:54.115 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:54.116 [print] KNMI
57
* print operateson
0
05:04:54.117 [print] https://haleconnect.com/services/bsp/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:54.118 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:54.120 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:54.121 [print] true
76
* eval db.writeln('"1009c2a4-4dba-49a5-b643-914ba8b80b52","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1009c2a4-4dba-49a5-b643-914ba8b80b52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1009c2a4-4dba-49a5-b643-914ba8b80b52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.300:82] 1c0dcc64-91aa-4d44-a9e3-54355556f5e7
ms: 587
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:53.693 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1c0dcc64-91aa-4d44-a9e3-54355556f5e7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
572
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1c0dcc64-91aa-4d44-a9e3-54355556f5e7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:54.273 [print] https:\/\/service.pdok.nl\/lv\/bag\/wfs\/v2_0?request=getCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:54.274 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:54.275 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:54.275 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:54.276 [print] Beheer PDOK
57
* print operateson
0
05:04:54.276 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=aa3b5e6e-7baa-40c0-8972-3353e927ec2f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:54.278 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:54.279 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:54.279 [print] "true";"true"
76
* eval db.writeln('"1c0dcc64-91aa-4d44-a9e3-54355556f5e7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1c0dcc64-91aa-4d44-a9e3-54355556f5e7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1c0dcc64-91aa-4d44-a9e3-54355556f5e7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.301:82] e9ba7d7f-6cd1-4271-bce4-56432924b338
ms: 635
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:53.975 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
4
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e9ba7d7f-6cd1-4271-bce4-56432924b338'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
604
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e9ba7d7f-6cd1-4271-bce4-56432924b338'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
2
45
* print connectUrl
1
05:04:54.592 [print] https://service.pdok.nl/rvo/mosselzaadinvanginstallaties/wfs/v1_0?service=wfs&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:54.593 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:54.594 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:54.595 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:54.596 [print] Beheer PDOK
57
* print operateson
0
05:04:54.596 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a04afee4-47d5-45b7-b7a0-a6f86106af11#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
9
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:04:54.607 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:54.608 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:54.609 [print] "true";"true"
76
* eval db.writeln('"e9ba7d7f-6cd1-4271-bce4-56432924b338","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e9ba7d7f-6cd1-4271-bce4-56432924b338","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e9ba7d7f-6cd1-4271-bce4-56432924b338","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.302:82] aa31349f-9607-4fdb-83ac-732f0b942adc
ms: 616
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:54.065 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'aa31349f-9607-4fdb-83ac-732f0b942adc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
598
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'aa31349f-9607-4fdb-83ac-732f0b942adc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:54.673 [print] https://service.pdok.nl/provincies/grondwaterbeschermingsgebieden/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:04:54.674 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:54.675 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:54.675 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:54.676 [print] Beheer PDOK
57
* print operateson
1
05:04:54.676 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=666554ed-5106-487d-b4bf-69fbd888a6d7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:04:54.679 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:54.680 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:54.681 [print] "true";"true"
76
* eval db.writeln('"aa31349f-9607-4fdb-83ac-732f0b942adc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"aa31349f-9607-4fdb-83ac-732f0b942adc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"aa31349f-9607-4fdb-83ac-732f0b942adc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.303:82] 3fa3aa0b-cd4a-4680-ad2e-89fc28411565
ms: 598
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:54.124 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3fa3aa0b-cd4a-4680-ad2e-89fc28411565'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
576
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3fa3aa0b-cd4a-4680-ad2e-89fc28411565'
4
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:54.718 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.f8e8e27f-9a8a-4704-b3d6-f42dc97157d2?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:54.719 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:54.720 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
2
05:04:54.722 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:54.723 [print] KNMI
57
* print operateson
1
05:04:54.724 [print] https://haleconnect.com/services/bsp/org.874.f8e8e27f-9a8a-4704-b3d6-f42dc97157d2/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:54.725 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:54.726 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:54.728 [print] true
76
* eval db.writeln('"3fa3aa0b-cd4a-4680-ad2e-89fc28411565","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3fa3aa0b-cd4a-4680-ad2e-89fc28411565","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3fa3aa0b-cd4a-4680-ad2e-89fc28411565","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.304:82] 76342a6d-452e-4e21-b5c0-81ff7b1be90e
ms: 651
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:54.282 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '76342a6d-452e-4e21-b5c0-81ff7b1be90e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
634
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '76342a6d-452e-4e21-b5c0-81ff7b1be90e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:54.925 [print] https://www.broinspireservices.nl/wfs/ossobor-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:54.926 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:54.927 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:54.928 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:54.929 [print] TNO Geologische Dienst Nederland
57
* print operateson
1
05:04:54.929 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=9dd9bf30-36e6-45ae-b368-bdef2720bdde&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:54.931 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:54.932 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:54.933 [print] "true";"true"
76
* eval db.writeln('"76342a6d-452e-4e21-b5c0-81ff7b1be90e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"76342a6d-452e-4e21-b5c0-81ff7b1be90e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"76342a6d-452e-4e21-b5c0-81ff7b1be90e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.305:82] c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217
ms: 629
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:54.613 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
612
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:55.234 [print] https://haleconnect.com/ows/services/org.874.28716afd-1e98-4623-9239-8abbd9249408_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:55.235 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:55.236 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:55.236 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:55.237 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
05:04:55.237 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:55.239 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:55.240 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:55.241 [print] true
76
* eval db.writeln('"c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.306:82] 7827b68f-647e-46cc-a02a-cac48eaa5dda
ms: 616
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:54.684 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7827b68f-647e-46cc-a02a-cac48eaa5dda'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
588
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7827b68f-647e-46cc-a02a-cac48eaa5dda'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
10
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:55.290 [print] https://service.pdok.nl/ienw/geluidskaartschipholnacht/wfs/v1_0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:55.291 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:55.291 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:55.292 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:55.292 [print] Beheer PDOK
57
* print operateson
0
05:04:55.293 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=58d39928-f502-48c9-a8c1-03244dc181bf#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
4
05:04:55.298 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:55.299 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:55.300 [print] "true";"true"
76
* eval db.writeln('"7827b68f-647e-46cc-a02a-cac48eaa5dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7827b68f-647e-46cc-a02a-cac48eaa5dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7827b68f-647e-46cc-a02a-cac48eaa5dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.307:82] e5ef707f-6458-4567-8d2c-d24fe88ab5e9
ms: 586
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:54.731 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e5ef707f-6458-4567-8d2c-d24fe88ab5e9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
564
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e5ef707f-6458-4567-8d2c-d24fe88ab5e9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
6
05:04:55.310 [print] https://www.gdngeoservices.nl/inspire/wms/zoutvelden_en_productieputten?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:55.310 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:55.311 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:55.312 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:55.313 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
05:04:55.313 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=e3b0da1e-0664-4025-b3f5-a54d74a26450&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:55.315 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:55.316 [print] "Technical Guidance for the implementation of INSPIRE View Services";"De service voldoet niet aan de richtlijnen van INSPIRE vanwege technische beperkingen";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:55.317 [print] "false";"false"
76
* eval db.writeln('"e5ef707f-6458-4567-8d2c-d24fe88ab5e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"e5ef707f-6458-4567-8d2c-d24fe88ab5e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e5ef707f-6458-4567-8d2c-d24fe88ab5e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.308:82] adn573b0-bd3b-4d7b-a97d-e65841e6e0b1
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:54.937 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:55.504 [print] https://inspire.caris.nl/geoserver3/rws/wcs?service=WCS&version=2.0.1&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:55.505 [print] OGC:WCS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:55.506 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:55.506 [print] OGC:WCS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:55.506 [print] Rijkswaterstaat
57
* print operateson
0
05:04:55.507 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:55.508 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/id\/document\/tg\/download-wcs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:55.509 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:55.510 [print] "true";"true"
76
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.309:82] adn573b0-bd3b-4d7b-a97d-e65841e6e0b3
ms: 578
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:55.244 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
564
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:55.817 [print] https://inspire.caris.nl/geoserver3/rws/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:55.818 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:55.818 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:55.818 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:55.819 [print] Rijkswaterstaat
57
* print operateson
0
05:04:55.819 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:55.821 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:55.822 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:55.822 [print] "false";"true"
76
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.310:82] adn573b0-bd3b-4d7b-a97d-e65841e6e0b4
ms: 676
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:55.303 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
3
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
632
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b4'
11
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
8
05:04:55.967 [print] https:\/\/www.rijkswaterstaat.nl\/apps\/geoservices\/geodata\/dmc\/bodemhoogte_1mtr_insp
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
05:04:55.969 [print] ["landingpage","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
0
05:04:55.972 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:55.972 [print] ["landingpage","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:55.973 [print] Rijkswaterstaat
57
* print operateson
0
05:04:55.973 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:55.975 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:55.976 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:55.978 [print] "true";"true"
76
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.311:82] adn83730-e750-485a-9c0c-39bf9bt72cf8
ms: 644
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:55.320 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'adn83730-e750-485a-9c0c-39bf9bt72cf8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
611
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn83730-e750-485a-9c0c-39bf9bt72cf8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:55.940 [print] https://www.rijkswaterstaat.nl/apps/geoservices/geodata/dmc/bodemhoogte_5mtr_atom_index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:55.940 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:55.941 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:55.941 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
11
56
* print organisationpath
7
05:04:55.959 [print] Rijkswaterstaat
57
* print operateson
1
05:04:55.960 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:04:55.962 [print] http://inspire.ec.europa.eu/documents/technical-guidance-implementation-inspire-download-services
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:55.963 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:55.964 [print] "true";"true"
76
* eval db.writeln('"adn83730-e750-485a-9c0c-39bf9bt72cf8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"adn83730-e750-485a-9c0c-39bf9bt72cf8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"adn83730-e750-485a-9c0c-39bf9bt72cf8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.312:82] eu-891ddc2d-8949-4a45-be96-c65b87c41f14
ms: 581
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:55.514 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eu-891ddc2d-8949-4a45-be96-c65b87c41f14'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-891ddc2d-8949-4a45-be96-c65b87c41f14'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
3
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:56.087 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.6b574ba3-3b1c-4f29-a631-0f160713d96a_wms?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.3.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:56.088 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:56.089 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:56.089 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:56.090 [print] Rijkswaterstaat
57
* print operateson
0
05:04:56.090 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6b574ba3-3b1c-4f29-a631-0f160713d96d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:56.093 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:56.094 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:56.095 [print] "true";"true"
76
* eval db.writeln('"eu-891ddc2d-8949-4a45-be96-c65b87c41f14","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eu-891ddc2d-8949-4a45-be96-c65b87c41f14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eu-891ddc2d-8949-4a45-be96-c65b87c41f14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.313:82] eu-75565-db8b-4df7-a3a6-0e9ca5289e5e
ms: 579
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:55.825 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eu-75565-db8b-4df7-a3a6-0e9ca5289e5e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
566
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-75565-db8b-4df7-a3a6-0e9ca5289e5e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:56.400 [print] https://haleconnect.com/ows/services/org.292.2350b86b-3efd-47e4-883e-519bfa8d0aba_wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:56.400 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:56.401 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:56.401 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:56.402 [print] Rijkswaterstaat
57
* print operateson
0
05:04:56.402 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2350b86b-3efd-47e4-883e-519bfa8d0abd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:56.403 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:56.404 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:56.405 [print] "true";"true"
76
* eval db.writeln('"eu-75565-db8b-4df7-a3a6-0e9ca5289e5e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eu-75565-db8b-4df7-a3a6-0e9ca5289e5e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eu-75565-db8b-4df7-a3a6-0e9ca5289e5e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.314:82] eu-6144d-231b-4a52-91d5-edde65076aff
ms: 613
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:55.968 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eu-6144d-231b-4a52-91d5-edde65076aff'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
601
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-6144d-231b-4a52-91d5-edde65076aff'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:56.577 [print] https://haleconnect.com/ows/services/org.292.2350b86b-3efd-47e4-883e-519bfa8d0aba_wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:04:56.578 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:56.578 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:56.578 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:56.579 [print] Rijkswaterstaat
57
* print operateson
0
05:04:56.579 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2350b86b-3efd-47e4-883e-519bfa8d0abd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:56.581 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:56.581 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:56.582 [print] true
76
* eval db.writeln('"eu-6144d-231b-4a52-91d5-edde65076aff","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eu-6144d-231b-4a52-91d5-edde65076aff","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eu-6144d-231b-4a52-91d5-edde65076aff","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.315:82] wt-c9463-a3da-401d-8251-8c6664865e0c
ms: 579
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:55.982 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'wt-c9463-a3da-401d-8251-8c6664865e0c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'wt-c9463-a3da-401d-8251-8c6664865e0c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:56.546 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.504afbe6-0069-411b-b69b-2aae3728f735_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
05:04:56.546 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:56.547 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:56.547 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
9
56
* print organisationpath
0
05:04:56.556 [print] Rijkswaterstaat
57
* print operateson
1
05:04:56.556 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=504afbe6-0069-411b-b69b-2aae3728f73a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:56.558 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:56.559 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:56.560 [print] true
76
* eval db.writeln('"wt-c9463-a3da-401d-8251-8c6664865e0c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"wt-c9463-a3da-401d-8251-8c6664865e0c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"wt-c9463-a3da-401d-8251-8c6664865e0c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.316:82] eu-7ab54-da5c-46ea-a5b5-53df01873240
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:56.098 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eu-7ab54-da5c-46ea-a5b5-53df01873240'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-7ab54-da5c-46ea-a5b5-53df01873240'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:56.666 [print] https://haleconnect.com/ows/services/org.292.c3955762-73a3-4c16-a15c-f3869487a1e3_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:56.667 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:56.667 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:56.668 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:56.668 [print] Rijkswaterstaat
57
* print operateson
0
05:04:56.668 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c3955762-73a3-4c16-a15c-f3869487a1ea#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:56.670 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:56.671 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:56.671 [print] "true";"true"
76
* eval db.writeln('"eu-7ab54-da5c-46ea-a5b5-53df01873240","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eu-7ab54-da5c-46ea-a5b5-53df01873240","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eu-7ab54-da5c-46ea-a5b5-53df01873240","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.317:82] eu-d9417-a69f-4665-bc42-8c6d84e5dedb
ms: 585
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:56.412 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eu-d9417-a69f-4665-bc42-8c6d84e5dedb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
567
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-d9417-a69f-4665-bc42-8c6d84e5dedb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:56.989 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.c3955762-73a3-4c16-a15c-f3869487a1e3_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:56.990 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:56.991 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:56.992 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:56.993 [print] Rijkswaterstaat
57
* print operateson
1
05:04:56.993 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c3955762-73a3-4c16-a15c-f3869487a1ea#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:56.995 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:56.996 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:56.997 [print] true
76
* eval db.writeln('"eu-d9417-a69f-4665-bc42-8c6d84e5dedb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eu-d9417-a69f-4665-bc42-8c6d84e5dedb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eu-d9417-a69f-4665-bc42-8c6d84e5dedb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.318:82] tbjk534p-wubf-crbp-cj25-d41611f0gfim
ms: 592
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:56.564 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'tbjk534p-wubf-crbp-cj25-d41611f0gfim'
1
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'tbjk534p-wubf-crbp-cj25-d41611f0gfim'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
14
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:57.148 [print] https:\/\/marineprojects.openearth.nl\/geoserver\/ihm_krm\/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:57.148 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:57.149 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:57.149 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:57.150 [print] Rijkswaterstaat
57
* print operateson
0
05:04:57.150 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=604d241d-6792-4286-bbef-44b2ce5c38c1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
05:04:57.154 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:57.156 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:57.157 [print] true
76
* eval db.writeln('"tbjk534p-wubf-crbp-cj25-d41611f0gfim","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"tbjk534p-wubf-crbp-cj25-d41611f0gfim","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"tbjk534p-wubf-crbp-cj25-d41611f0gfim","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.319:82] tbjk534p-wubf-crbp-cj25-d41611m0gfim
ms: 612
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:56.585 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'tbjk534p-wubf-crbp-cj25-d41611m0gfim'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
591
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'tbjk534p-wubf-crbp-cj25-d41611m0gfim'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:57.186 [print] https:\/\/marineprojects.openearth.nl\/geoserver\/ihm_krm\/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:57.187 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:57.188 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:57.189 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:57.190 [print] Rijkswaterstaat
57
* print operateson
1
05:04:57.191 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=604d241d-6792-4286-bbef-44b2ce5c38c1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:57.193 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
05:04:57.195 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:57.196 [print] "true";"true"
76
* eval db.writeln('"tbjk534p-wubf-crbp-cj25-d41611m0gfim","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"tbjk534p-wubf-crbp-cj25-d41611m0gfim","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"tbjk534p-wubf-crbp-cj25-d41611m0gfim","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.320:82] wt-43309-c655-4e64-b914-149050fd479c
ms: 591
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:56.674 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'wt-43309-c655-4e64-b914-149050fd479c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
566
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'wt-43309-c655-4e64-b914-149050fd479c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:57.248 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.504afbe6-0069-411b-b69b-2aae3728f735_wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:57.249 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:57.249 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:57.250 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:57.251 [print] Rijkswaterstaat
57
* print operateson
0
05:04:57.251 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=504afbe6-0069-411b-b69b-2aae3728f73a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:57.253 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:57.254 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:57.255 [print] "true";"true"
76
* eval db.writeln('"wt-43309-c655-4e64-b914-149050fd479c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"wt-43309-c655-4e64-b914-149050fd479c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"wt-43309-c655-4e64-b914-149050fd479c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
10
Scenario: [1.321:82] 7c48322f-f9cf-4a08-aa63-c4de080c13ab
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:57.001 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7c48322f-f9cf-4a08-aa63-c4de080c13ab'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
546
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7c48322f-f9cf-4a08-aa63-c4de080c13ab'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:57.555 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.7c48322f-f9cf-4a08-aa63-c4de080c13a1_wms?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.3.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:57.556 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:57.556 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:57.557 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
2
05:04:57.559 [print] Rijkswaterstaat
57
* print operateson
0
05:04:57.559 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7c48322f-f9cf-4a08-aa63-c4de080c13aa#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:57.560 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:57.561 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:57.562 [print] "true";"true"
76
* eval db.writeln('"7c48322f-f9cf-4a08-aa63-c4de080c13ab","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7c48322f-f9cf-4a08-aa63-c4de080c13ab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7c48322f-f9cf-4a08-aa63-c4de080c13ab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.322:82] 7c48322f-f9cf-4a08-aa63-c4de080c13ac
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:57.161 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7c48322f-f9cf-4a08-aa63-c4de080c13ac'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
558
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7c48322f-f9cf-4a08-aa63-c4de080c13ac'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:57.728 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.7c48322f-f9cf-4a08-aa63-c4de080c13a1_wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:57.728 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:57.729 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:57.729 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:57.730 [print] Rijkswaterstaat
57
* print operateson
0
05:04:57.730 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7c48322f-f9cf-4a08-aa63-c4de080c13aa#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:57.731 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:57.732 [print] Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:57.733 [print] true
76
* eval db.writeln('"7c48322f-f9cf-4a08-aa63-c4de080c13ac","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7c48322f-f9cf-4a08-aa63-c4de080c13ac","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7c48322f-f9cf-4a08-aa63-c4de080c13ac","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.323:82] cfc800cb-e903-4364-9415-ddd3e0ecf49b
ms: 567
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:57.200 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cfc800cb-e903-4364-9415-ddd3e0ecf49b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cfc800cb-e903-4364-9415-ddd3e0ecf49b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:57.758 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.6cef2128-a227-4aa7-bc74-0e3797644d51_wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:57.759 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:57.760 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:57.761 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:57.762 [print] Rijkswaterstaat
57
* print operateson
1
05:04:57.762 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cfc800cb-e903-4364-9415-ddd3e0ecf49f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:57.764 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:57.765 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:57.766 [print] "true";"true"
76
* eval db.writeln('"cfc800cb-e903-4364-9415-ddd3e0ecf49b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"cfc800cb-e903-4364-9415-ddd3e0ecf49b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cfc800cb-e903-4364-9415-ddd3e0ecf49b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.324:82] cfc800cb-e903-4364-9415-ddd3e0ecf49c
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:57.270 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cfc800cb-e903-4364-9415-ddd3e0ecf49c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
543
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cfc800cb-e903-4364-9415-ddd3e0ecf49c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:57.822 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.6cef2128-a227-4aa7-bc74-0e3797644d51_wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:57.823 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:57.824 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:57.824 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:57.825 [print] Rijkswaterstaat
57
* print operateson
0
05:04:57.825 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cfc800cb-e903-4364-9415-ddd3e0ecf49f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:57.827 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:57.828 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:57.828 [print] true
76
* eval db.writeln('"cfc800cb-e903-4364-9415-ddd3e0ecf49c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"cfc800cb-e903-4364-9415-ddd3e0ecf49c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cfc800cb-e903-4364-9415-ddd3e0ecf49c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.325:82] 917b5ba0-4fdd-4654-8c18-b3ccdadaa55c
ms: 597
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:57.565 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '917b5ba0-4fdd-4654-8c18-b3ccdadaa55c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
570
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '917b5ba0-4fdd-4654-8c18-b3ccdadaa55c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
10
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
05:04:58.163 [print] https://haleconnect.com/ows/services/org.292.917b5ba0-4fdd-4654-8c18-b3ccdadaa550_wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:58.164 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:58.165 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:58.165 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:58.167 [print] Rijkswaterstaat
57
* print operateson
1
05:04:58.167 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=917b5ba0-4fdd-4654-8c18-b3ccdadaa55a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:58.169 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:58.170 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:58.171 [print] true
76
* eval db.writeln('"917b5ba0-4fdd-4654-8c18-b3ccdadaa55c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"917b5ba0-4fdd-4654-8c18-b3ccdadaa55c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"917b5ba0-4fdd-4654-8c18-b3ccdadaa55c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.326:82] cefad637-5ffd-4dd0-b475-bc125a11f7eb
ms: 569
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:57.736 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cefad637-5ffd-4dd0-b475-bc125a11f7eb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
555
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cefad637-5ffd-4dd0-b475-bc125a11f7eb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:58.299 [print] https://haleconnect.com/ows/services/org.292.cefad637-5ffd-4dd0-b475-bc125a11f7e6_wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:58.299 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:58.300 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:58.300 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:58.301 [print] Rijkswaterstaat
57
* print operateson
0
05:04:58.301 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cefad637-5ffd-4dd0-b475-bc125a11f7ea#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:58.303 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:58.303 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:58.304 [print] "true";"true"
76
* eval db.writeln('"cefad637-5ffd-4dd0-b475-bc125a11f7eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"cefad637-5ffd-4dd0-b475-bc125a11f7eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cefad637-5ffd-4dd0-b475-bc125a11f7eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.327:82] cefad637-5ffd-4dd0-b475-bc125a11f7ec
ms: 607
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:57.770 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cefad637-5ffd-4dd0-b475-bc125a11f7ec'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
593
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cefad637-5ffd-4dd0-b475-bc125a11f7ec'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:58.370 [print] https://haleconnect.com/ows/services/org.292.cefad637-5ffd-4dd0-b475-bc125a11f7e6_wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:58.371 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:58.372 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:58.372 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:58.373 [print] Rijkswaterstaat
57
* print operateson
0
05:04:58.374 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cefad637-5ffd-4dd0-b475-bc125a11f7ea#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:58.375 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:58.376 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:58.377 [print] true
76
* eval db.writeln('"cefad637-5ffd-4dd0-b475-bc125a11f7ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"cefad637-5ffd-4dd0-b475-bc125a11f7ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cefad637-5ffd-4dd0-b475-bc125a11f7ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.328:82] 917b5ba0-4fdd-4654-8c18-b3ccdadaa55b
ms: 592
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:57.831 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '917b5ba0-4fdd-4654-8c18-b3ccdadaa55b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
577
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '917b5ba0-4fdd-4654-8c18-b3ccdadaa55b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:58.416 [print] https://haleconnect.com/ows/services/org.292.917b5ba0-4fdd-4654-8c18-b3ccdadaa550_wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:58.417 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:58.419 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:58.419 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:58.420 [print] Rijkswaterstaat
57
* print operateson
0
05:04:58.420 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=917b5ba0-4fdd-4654-8c18-b3ccdadaa55a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:58.422 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:58.422 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:58.423 [print] "true";"true"
76
* eval db.writeln('"917b5ba0-4fdd-4654-8c18-b3ccdadaa55b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"917b5ba0-4fdd-4654-8c18-b3ccdadaa55b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"917b5ba0-4fdd-4654-8c18-b3ccdadaa55b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.329:82] 68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2
ms: 601
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:58.174 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
587
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:58.769 [print] https:\/\/geo.rijkswaterstaat.nl\/services\/ogc\/hws\/wm\/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:58.770 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:58.771 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:58.771 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:58.772 [print] Rijkswaterstaat
57
* print operateson
0
05:04:58.772 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:58.774 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:58.775 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:58.775 [print] "true";"true"
76
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.330:82] 68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2
ms: 636
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:58.307 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
622
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:58.937 [print] https:\/\/geo.rijkswaterstaat.nl\/services\/ogc\/hws\/wm\/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:58.938 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:58.939 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:58.939 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:58.940 [print] Rijkswaterstaat
57
* print operateson
0
05:04:58.940 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:58.941 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:58.942 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:58.943 [print] true
76
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.331:82] 5117ebc1-5a63-439b-b3ca-43b80be804fb
ms: 656
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:58.380 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5117ebc1-5a63-439b-b3ca-43b80be804fb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
639
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5117ebc1-5a63-439b-b3ca-43b80be804fb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:59.027 [print] https://service.pdok.nl/kadaster/ad/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:59.028 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:04:59.029 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:59.029 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:59.030 [print] Beheer PDOK
57
* print operateson
0
05:04:59.030 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a5f961e9-ebdd-41e2-b8e8-ab33ed340a83#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:59.031 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
3
05:04:59.035 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
05:04:59.036 [print] "true";"true"
76
* eval db.writeln('"5117ebc1-5a63-439b-b3ca-43b80be804fb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5117ebc1-5a63-439b-b3ca-43b80be804fb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5117ebc1-5a63-439b-b3ca-43b80be804fb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.332:82] bbf57a25-0476-4d46-8e68-caaa5864a177
ms: 664
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:58.426 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bbf57a25-0476-4d46-8e68-caaa5864a177'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
641
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bbf57a25-0476-4d46-8e68-caaa5864a177'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:59.075 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.b005ca06-7d3d-4805-bcac-0fb65196db22?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:59.076 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:59.076 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:59.077 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:59.078 [print] KNMI
57
* print operateson
0
05:04:59.079 [print] https://haleconnect.com/services/bsp/org.874.b005ca06-7d3d-4805-bcac-0fb65196db22/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
9
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:59.088 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:59.089 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:59.090 [print] true
76
* eval db.writeln('"bbf57a25-0476-4d46-8e68-caaa5864a177","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bbf57a25-0476-4d46-8e68-caaa5864a177","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bbf57a25-0476-4d46-8e68-caaa5864a177","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.333:82] 6c62e0a5-c215-4e47-94b0-a239e264417d
ms: 631
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:58.778 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6c62e0a5-c215-4e47-94b0-a239e264417d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
598
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6c62e0a5-c215-4e47-94b0-a239e264417d'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
3
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
05:04:59.394 [print] https:\/\/geodata.nationaalgeoregister.nl\/plu\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
05:04:59.396 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
05:04:59.398 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
05:04:59.399 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:04:59.401 [print] Beheer PDOK
57
* print operateson
1
05:04:59.402 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a36#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:59.405 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:59.407 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:59.409 [print] "true";"true"
76
* eval db.writeln('"6c62e0a5-c215-4e47-94b0-a239e264417d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6c62e0a5-c215-4e47-94b0-a239e264417d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6c62e0a5-c215-4e47-94b0-a239e264417d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.334:82] dc250a60-0ac6-487f-8a42-cb4f67582f34
ms: 557
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:58.946 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dc250a60-0ac6-487f-8a42-cb4f67582f34'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dc250a60-0ac6-487f-8a42-cb4f67582f34'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:59.496 [print] https://service.pdok.nl/kadaster/ad/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:59.497 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:59.498 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:59.498 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:59.499 [print] Beheer PDOK
57
* print operateson
0
05:04:59.499 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a5f961e9-ebdd-41e2-b8e8-ab33ed340a83#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:59.501 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:59.502 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:59.503 [print] "true";"true"
76
* eval db.writeln('"dc250a60-0ac6-487f-8a42-cb4f67582f34","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dc250a60-0ac6-487f-8a42-cb4f67582f34","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dc250a60-0ac6-487f-8a42-cb4f67582f34","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.335:82] 539ec652-482d-4806-a830-0458cf8be477
ms: 678
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:59.040 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '539ec652-482d-4806-a830-0458cf8be477'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
663
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '539ec652-482d-4806-a830-0458cf8be477'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:59.710 [print] http://data.waterkwaliteitsportaal.nl/inspire/vs/EF
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:59.711 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:59.712 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:59.712 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:59.713 [print] Informatiehuis Water
57
* print operateson
0
05:04:59.713 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/nl/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=891ddc2d-8949-4a45-be96-c65b87c41f13&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:59.715 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:59.716 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Zie de gerefereerde specificatie.";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:59.717 [print] "false";"true";"true"
76
* eval db.writeln('"539ec652-482d-4806-a830-0458cf8be477","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"539ec652-482d-4806-a830-0458cf8be477","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"539ec652-482d-4806-a830-0458cf8be477","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.336:82] 018a28a5-1019-4747-b031-f66ffc1c6ae7
ms: 641
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:59.093 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '018a28a5-1019-4747-b031-f66ffc1c6ae7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
627
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '018a28a5-1019-4747-b031-f66ffc1c6ae7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:59.728 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/tn-ro\/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:59.729 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:59.729 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:59.730 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:59.730 [print] Beheer PDOK
57
* print operateson
0
05:04:59.731 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-cb527d-f6db-4835-b0cd-deb245241254#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:59.732 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:59.733 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:59.734 [print] "true";"true"
76
* eval db.writeln('"018a28a5-1019-4747-b031-f66ffc1c6ae7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"018a28a5-1019-4747-b031-f66ffc1c6ae7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"018a28a5-1019-4747-b031-f66ffc1c6ae7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.337:82] 9fd2324b-9e02-4eab-bd4a-8e2be4fcd545
ms: 569
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:59.412 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9fd2324b-9e02-4eab-bd4a-8e2be4fcd545'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9fd2324b-9e02-4eab-bd4a-8e2be4fcd545'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:04:59.975 [print] https://inspire.rivm.nl/geoserver/airq/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:04:59.976 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:04:59.976 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:04:59.977 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:04:59.977 [print] RIVM
57
* print operateson
0
05:04:59.978 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2cc2c30c-91b8-412a-a060-e84d25272581
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:04:59.979 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:04:59.980 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:04:59.982 [print] "true";"true";"true"
76
* eval db.writeln('"9fd2324b-9e02-4eab-bd4a-8e2be4fcd545","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9fd2324b-9e02-4eab-bd4a-8e2be4fcd545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9fd2324b-9e02-4eab-bd4a-8e2be4fcd545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.338:82] adn573b0-bd3b-4d7b-a97d-e65841e6e0b2
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:59.506 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
554
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:05:00.070 [print] https:\/\/geo.rijkswaterstaat.nl\/services\/ogc\/gdr\/bodemhoogte_1mtr\/ows?service=WCS&request=getcapabilities&version=2.0.1
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:05:00.071 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:05:00.073 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:05:00.073 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:05:00.074 [print] Rijkswaterstaat
57
* print operateson
0
05:05:00.074 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:05:00.076 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/id\/document\/tg\/download-wcs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:05:00.077 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:05:00.079 [print] "false";"true"
76
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.339:82] ff2a91df-931c-46fe-8f07-a1ec64e1335e
ms: 581
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:59.721 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ff2a91df-931c-46fe-8f07-a1ec64e1335e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
568
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ff2a91df-931c-46fe-8f07-a1ec64e1335e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:05:00.296 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.794fa9da-8bf0-4053-83d8-1174f2317dcb?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:05:00.297 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:05:00.298 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:05:00.298 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:05:00.298 [print] KNMI
57
* print operateson
0
05:05:00.299 [print] https://haleconnect.com/services/bsp/org.874.794fa9da-8bf0-4053-83d8-1174f2317dcb/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:05:00.300 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:05:00.301 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:05:00.301 [print] true
76
* eval db.writeln('"ff2a91df-931c-46fe-8f07-a1ec64e1335e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ff2a91df-931c-46fe-8f07-a1ec64e1335e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ff2a91df-931c-46fe-8f07-a1ec64e1335e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.340:82] d1cb16ca-2029-454f-b3f1-f70bceaf62c1
ms: 610
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:59.737 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd1cb16ca-2029-454f-b3f1-f70bceaf62c1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
595
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd1cb16ca-2029-454f-b3f1-f70bceaf62c1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:05:00.338 [print] https:\/\/service.pdok.nl\/bzk\/bro-geomorfologischekaart\/wms\/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:05:00.339 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
3
05:05:00.340 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:05:00.343 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
05:05:00.344 [print] Beheer PDOK
57
* print operateson
0
05:05:00.344 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=459231d0-7379-4f26-a444-7616e1d888f0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:05:00.346 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:05:00.346 [print] #notpresent
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:05:00.347 [print] #notpresent
76
* eval db.writeln('"d1cb16ca-2029-454f-b3f1-f70bceaf62c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d1cb16ca-2029-454f-b3f1-f70bceaf62c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d1cb16ca-2029-454f-b3f1-f70bceaf62c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.341:82] b87a0095-2ad7-4dbb-81a1-fed060df79e1
ms: 590
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:04:59.985 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b87a0095-2ad7-4dbb-81a1-fed060df79e1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
577
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b87a0095-2ad7-4dbb-81a1-fed060df79e1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
05:05:00.570 [print] https://geodata.nationaalgeoregister.nl/nationaleparken/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:05:00.571 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
05:05:00.571 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:05:00.571 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:05:00.572 [print] Beheer PDOK
57
* print operateson
0
05:05:00.572 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4961d305-fbb5-426a-9ba3-53e1ca5f3b18#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:05:00.573 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:05:00.574 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:05:00.575 [print] "true";"true"
76
* eval db.writeln('"b87a0095-2ad7-4dbb-81a1-fed060df79e1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b87a0095-2ad7-4dbb-81a1-fed060df79e1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b87a0095-2ad7-4dbb-81a1-fed060df79e1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.342:82] eu-891ddc2d-8949-4a45-be96-c65b87c41f15
ms: 592
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:05:00.082 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eu-891ddc2d-8949-4a45-be96-c65b87c41f15'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
577
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-891ddc2d-8949-4a45-be96-c65b87c41f15'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:05:00.667 [print] https://haleconnect.com/ows/services/org.292.6b574ba3-3b1c-4f29-a631-0f160713d96a_wfs?SERVICE=WFS&REQUEST=GetCapabilities&VERSION=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:05:00.668 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:05:00.668 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:05:00.668 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:05:00.669 [print] Rijkswaterstaat
57
* print operateson
0
05:05:00.669 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6b574ba3-3b1c-4f29-a631-0f160713d96d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:05:00.671 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:05:00.672 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:05:00.673 [print] true
76
* eval db.writeln('"eu-891ddc2d-8949-4a45-be96-c65b87c41f15","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eu-891ddc2d-8949-4a45-be96-c65b87c41f15","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eu-891ddc2d-8949-4a45-be96-c65b87c41f15","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.343:82] 12505d53-a942-467e-a462-ddbe5ac6467f
ms: 575
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
05:05:00.304 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '12505d53-a942-467e-a462-ddbe5ac6467f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '12505d53-a942-467e-a462-ddbe5ac6467f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
05:05:00.874 [print] https://haleconnect.com/ows/services/org.874.28716afd-1e98-4623-9239-8abbd9249408_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
05:05:00.875 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
05:05:00.876 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
05:05:00.876 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
05:05:00.876 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
05:05:00.876 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
05:05:00.878 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
05:05:00.878 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
05:05:00.879 [print] true
76
* eval db.writeln('"12505d53-a942-467e-a462-ddbe5ac6467f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"12505d53-a942-467e-a462-ddbe5ac6467f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"12505d53-a942-467e-a462-ddbe5ac6467f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0